vscode
vscode copied to clipboard
How to disable rerun on save?
It seems it automatically reruns the test file on file save even watch mode is off
To Reproduce just save the test file
Expected behavior Should not rerun on save because watch mode is off
Screenshots
Environment
(Paste info.txt content generated by the example project)
- OS: macOS m1
- VSCode version: 1.69.2
- Vitest version: ^0.12.6
- Vitest plugin version: v0.2.23
It won't rerun on save if it's not in the watch mode. Can you reproduce this issue stablely?
@zxch3n this happens when I change to "vitest.commandLine": "npx vitest" even for the example project
The reason I need to use npx vitest
so I can add coverage so npx vitest --coverage
since it seems the default one doesn't read the vite.config.ts that it should generate coverage.
Is this still happening on the latest version?
Correct me if I'm wrong, but I think the issue here is that this extension requires Vitest to be run in watch mode (due to its reliance on the API), but when the test run finishes, the watch process is never closed - that's what I see on my end.
Hm, actually I guess not - looks like that was a stale process from a point where I had commandLine set incorrectly. Disregard, I suppose!