chaance / vitest-dom

Custom Vitest matchers to test the state of the DOM, forked from jest-dom.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix vitest peerDependency

Kamahl19 opened this issue · comments

The current setting

"peerDependencies": {
   "vitest": "^0.31.0"
}

does not allow upgrading to vitest 0.32 .

You can test this here https://semver.npmjs.com/ . ^0.31.0 will not list 0.32

Hi, i'm experiencing the same issue, i can't upgrade vitest to 0.32.2
any updates?

@chaance Any chance of a release with this fix in it?

For those using a recent version of nodejs (16+) then you can add this to your package.json:

  "overrides": {
    "vitest": "^0.34.4"
  },

Just ensure the version matches what's in your devDependencies.