-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
VSIX Vitest Extension not providing UI button or recognizing tests #286
Comments
Hello @mujevich. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
I'm not sure how it would be possible to reproduce my local VS setup, outside of providing the vitest settings |
I have the same issue. Can be reproduced with https://github.com/wundergraph/cosmo Open it from the root and navigate to https://github.com/wundergraph/cosmo/blob/main/cdn-server/cdn/test/cdn.test.ts |
Thanks a ton for that @StarpTech !! |
I have a strong feeling this will become way better after #253 is merged. |
Also potentially related to #285, when I restarted my app I did see a similar error |
This should work in pre-release 0.5.0 and higher. Note that the extension now requires Vitest 1.4.0 or higher. If you still have the issue, please open a new issue with a reproduction. |
pre-release 0.5.0 is not available on the marketplace. |
https://marketplace.visualstudio.com/items?itemName=vitest.explorer ![]() |
In your case, the problem is the monorepo structure. You define workspace configurations for your pnpm workspace, but you don't do the same for Vitest workspace - I would recommend adding a There are other issues at play that I will push the fix for (Released in 0.5.3), but I would strongly recommend adding a workspace configuration. |
Hi, I have defined a workspace file but it still doesn't work. export default ['controlplane', 'shared', 'cli', 'composition']; |
It worked. I also had to install vitest in the root. Thank you. |
Describe the bug
I had initially set up my project using the now deprecated Vitest Extension, and have now migrated to the currently supported version
My issue is that after migrating, my test no longer have the Play / Debug options next to them and the tests don't seem to be recognized. I'm still able to run my tests via the command line however.
Reproduction
N.A
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: