-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension discovers tests but does not run them when Vitest is installed above the root #308
Comments
Can you add steps on how to install dependencies in your reproduction, please. Currently I see this error when running
|
Fixed it. Turns out I had an old global yarn installed. The error should be fixed by 204d15b |
Thanks for the quick turnaround @sheremet-va! I confirm that
Would you like me to open a separate issue for that? |
Oh, I didn't notice that, sorry. So, it doesn't run all tests or all in a folder? |
As far as I can tell, it doesn't run any tests. I'd expect it to run all the tests under the I've just pushed a commit to that reproduction, which adds a side-effect to one of the tests. When I click run on the |
Ah, thanks for digging into that! I'll do that later today. Could you please share the underlying |
I didn't change anything. You need to specify the full path to |
Describe the bug
I have a monorepo1 which has two components, a Python tool and a TypeScript project. I've installed
vitest
in the TypeScript project, which isn't the root of the repo, and whenvitest
is run from the command line in that subdirectory, it works fine.This extension does discover the tests just fine2, but will not run them if I click the run button on the top level of the tree (
typescript-project
in the screenshot below).It will run them if I click the run button for
client
orserver
, which I've confirmed by setting up a side effect for the test and seeing it occur. But it will not report the test results in this case.I'm running the latest pre-release version of this extension (
0.5.6
as of now). Thank you all for looking into this, I really appreciate it!Reproduction
https://github.com/roryschadler/vitest-non-root-monorepo
System Info
Used Package Manager
yarn
Validations
Footnotes
https://github.com/roryschadler/vitest-non-root-monorepo ↩
↩
The text was updated successfully, but these errors were encountered: