Repository navigation
Running tests for single project outside root directory #8610
Replies: 1 comment
|
Then in The other common pattern is just running everything from the root and using — |
|
Then in The other common pattern is just running everything from the root and using — |
Uh oh!
There was an error while loading. Please reload this page.
I'm working on a monorepo and just learned about vitest Test Projects. I relocated my existing packages/core/vitest.config and packages/rpc/vitest.config into the root vite.config.
I'm trying to run the core tests from packages/core, but neither
vitest -c ../../vitest.config.ts --project corenorvitest --project corework.My goal is to avoid merging shared configuration because my packages/core/tsconfig.json configures
compilerOptions.rootDir=".".What am I missing?
Here's my single vitest.config.ts in the root directory.
All reactions