-
Notifications
You must be signed in to change notification settings - Fork 475
Setting vitest environment in package.json
doesn't play well with VS Code's vitest extension
#199
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
Comments
package.json
doesn't play well with VS Code vitest extensionpackage.json
doesn't play well with VS Code's vitest extension
I think this needs to be reported to the Vitest VS Code extension instead of here? It is a fair use of the CLI arguments considering how few options the command needs to use. The VS Code extension should support this use case. |
How would it know which script it should look at? There is probably a VS Code setting to set which CLI arguments should be used, but that's not as good as it just working without further configuration. |
I think they can use some heuristics to suggest a setting. But yeah, your argument makes sense. It is not ideal. |
Isn't just setting it in |
I kinda don't like using |
BTW, Seems like this had another unfortunate side effect, vitest in VS Code didn't know about the root flag so it would also pick up playwright tests. |
Yeah, the Anyway, thanks to @beta, now we'll create a perfectly working and scalable |
Setting the vitest environment to jsdom in the
package.json
instead of invite.config.ts
doesn't play well with the VS Code vitest extension which won't know about it and will fail to run vitest without further configuration.create-vue/template/config/vitest/package.json
Line 3 in 99775d3
The text was updated successfully, but these errors were encountered: