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
I have a yarn-workspace-powered monorepo which has vitest installed in both of the packages as well as the root. When I run yarn test /absolute/path/vitest-non-root-monorepo/typescript-project (with/without trailing slash), I get the following error:
yarn test /Users/roryschadler/testing/vitest-non-root-monorepo/typescript-project/
DEV v1.4.0 /Users/roryschadler/testing/vitest-non-root-monorepo/typescript-project
filter: /Users/roryschadler/testing/vitest-non-root-monorepo/typescript-project/
[client] Config
include: **/*.{test,spec}.?(c|m)[jt]s?(x)
exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
[server] Config
include: **/*.{test,spec}.?(c|m)[jt]s?(x)
exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
watch exclude: **/node_modules/**, **/dist/**
No test files found, exiting with code 1
If I run yarn test /absolute/path/vitest-non-root-monorepo/typescript-project/client or ...client/, the tests under client run just fine.
Describe the bug
I have a yarn-workspace-powered monorepo which has
vitest
installed in both of the packages as well as the root. When I runyarn test /absolute/path/vitest-non-root-monorepo/typescript-project
(with/without trailing slash), I get the following error:If I run
yarn test /absolute/path/vitest-non-root-monorepo/typescript-project/client
or...client/
, the tests underclient
run just fine.Reproduction
https://github.com/roryschadler/vitest-non-root-monorepo
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: