Workspace read project vite.config.ts
files but not apply config to that project
#4050
Closed
6 tasks done
Labels
Describe the bug
Vitest has read the
vite.config.ts
file under each projects. However, these configuration files did not take effect.Reproduction
Repo: https://github.com/cncolder/vitest-workspace-demo/tree/main
There are two projects
a
andb
under workspace. Vite define__DEV__
constant. If you run vitest in each projects. The test cases will passed.If you run vitest in the root of workspace. You will find the
vite.config.ts
is loaded. But not used for replace the__DEV__
constant.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: