monorepo shouldn't require a root installation of vitest #607
samuelstroschein
started this conversation in
Feedback
Replies: 1 comment 9 replies
-
You have a vitest workspace file in the root of your monorepo. What vitest should be used to process it? The file can only be imported by the vitest process itself. If you don't use it, don't have the file. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
It's unclear which vitest version is used for packages.
The VSCode extension forces the installation of votes at the root of the repo, even if a workspace is defined.
This can lead to vitest versions running out of sync. A test run with the vitest CLI in a package uses the vitest version defined in the
package-a/package.json
while the VSCode extension uses the vitest version at the root of the monorepo.We have been battling flaky tests for months in https://github.com/opral/monorepo. I don't know if the vitest vscode extension and out of sync versions are to blame or something else.
Expected behavior
The VSCode extension picks up the vitest version from the projects and does not require a vitest installation at the root of the repo.
Beta Was this translation helpful? Give feedback.
All reactions