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
when i create a new test file in a repo using vitest, i always have to restart VSCode in order for the extension to pick up the test file and the associated tests within it. would be nice to either have it automatically pick the file up, or, like the typescript server, have a command you can run from cmd+shift+p to restart the extension to pick the new file up. would just like to not have to restart the app if possible.
Reproduction
create a new test file with a test in it and save. in order for the extension play button to show up in the file, you have to restart VSCode
Output
[INFO 8:20:50 AM] [v1.2.19] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 8:20:50 AM] [API] Running Vitest v1.6.0 (app/vitest.config.ts) with Node.js@v20.17.0: /Users/user/.nvm/versions/node/v20.17.0/bin/node
[INFO 8:20:50 AM] [API] Vitest v1.6.0 (app/vitest.config.ts) process 40790 created
[8:20:50 AM] [VSCODE] File deleted: vitest.config.ts.timestamp-1728307250648-8736135778afb.mjs
[8:20:53 AM] [VSCODE] File deleted: .git/index.lock
[8:25:59 AM] [VSCODE] File created: src/components/Foo/Foo.test.tsx
[INFO 8:25:59 AM] [Worker] Collecting tests due to file changes: src/components/Foo/Foo.test.tsx
[8:26:00 AM] Not starting the runner because tests are being collected
[8:26:00 AM] No test run to finish for
[8:26:00 AM] [VSCODE] File changed: node_modules/.vite/vitest/results.json
[8:26:43 AM] [VSCODE] File changed: src/components/Foo/Foo.test.tsx
[INFO 8:26:43 AM] [Worker] Collecting tests due to file changes: src/components/Foo/Foo.test.tsx
[8:26:43 AM] Not starting the runner because tests are being collected
[8:26:43 AM] No test run to finish for
[8:26:43 AM] [VSCODE] File changed: node_modules/.vite/vitest/results.json
Version
v1.2.19
Validations
Check that you are using the latest version of the extension
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
when i create a new test file in a repo using vitest, i always have to restart VSCode in order for the extension to pick up the test file and the associated tests within it. would be nice to either have it automatically pick the file up, or, like the typescript server, have a command you can run from cmd+shift+p to restart the extension to pick the new file up. would just like to not have to restart the app if possible.
Reproduction
create a new test file with a test in it and save. in order for the extension play button to show up in the file, you have to restart VSCode
Output
Version
v1.2.19
Validations
The text was updated successfully, but these errors were encountered: