You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, nuxt-vitest declares vitest as a dependency. However, it is not possible to invoke binaries exposed by transitive dependencies (at least for yarn, see yarnpkg/berry#1875). Thus users are forced to install vitest as well, so that you end up with two versions of vitest which might lead to version mismatches and issues such as https://github.com/danielroe/nuxt-vitest/issues/132.
Proposal:
Either make vitest a peer dependency
Re-expose the vitest binary in nuxt-vitest
The text was updated successfully, but these errors were encountered:
Thanks for this @danielroe - I just realized that the dep is a bit restrictive due to vitest still being prerelease (<1). Should the version be something like ~0 to support all pre-release versions of vitest? Currently if you $ ni -D @nuxt/test-utils nuxt-vitest on a fresh nuxt install, this will fail.
Currently, nuxt-vitest declares vitest as a dependency. However, it is not possible to invoke binaries exposed by transitive dependencies (at least for yarn, see yarnpkg/berry#1875). Thus users are forced to install vitest as well, so that you end up with two versions of vitest which might lead to version mismatches and issues such as https://github.com/danielroe/nuxt-vitest/issues/132.
Proposal:
The text was updated successfully, but these errors were encountered: