-
-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Describe the bug
I can't get debugging a test to work using your extension in VS Code when the test is configured to use a real browser.
I've had various errors (been trying to get this working for days), but for the sake of reproducible steps, I tried it using one of your own sample projects. It is a bit of a long story, but after all the rabbit trails, the short version is that I got to where it launches a browser and runs the test, but apparently, even after I added sourceMap:true, it can't find a place to set my breakpoint.
Reproduction
- installed your extension
- cloned https://github.com/vitest-dev/vscode.git
- various messy stuff to get pnpm installed (using volta)
- pnpm install
- restarted VS code
- testing tab shows only a few of the samples.
- Picked the "add" test in samples\basic-v4\test\add.test.ts
- Set a breakpoint in it
- used the green arrow to debug that test
- all well: hits breakpoint
- modified the corresponding basic-v4\vitest.config.ts, adding
test: {
...
browser: {
enabled: true,
},
- surprising result: vitest extension green arrows disappear from add.tests.ts; the whole basic-v4 sample disappears from the TESTING window; no obvious message tells me why I can't test it any more
- tried variations on vitest.config.ts, such as
test: {
include: ['src/should_included_test.ts', 'test/**/*.test.ts'],
exclude: ['test/ignored.test.ts'],
browser: {
enabled: true,
// Configure browser options
instances: [
{
name: 'chromium',
},
]
},
},
- no change
- (discovered and ran) npx vitest init browser. Chose Typescript, playwright, chromium, vanilla, yes (install playwright browsers)
- Many more sample projects in TESTING window. basic-v4 came back. vitest extension arrows came back in add.tests.ts
- tried debugging the test
- breakpoint is not hit, and test does not appear to run. Only obvious result is a popup saying "Failed to report coverage. [birpc] rpc is closed, cannot call "waitForCoverageReport". Check the output for more details.". There is nothing in the output window. Nothing new in terminal window. Test Results window just says "The test run did not record any output." Debug console says "C:\Program Files\Volta\node.EXE .....\Users\Thomson.vscode\extensions\vitest.explorer-1.28.2\dist\worker.js
Process exited with code 1"
I tried several variations on vitest.config.ts with the same result. The one I thought most likely to work was
/// <reference types="vitest" />
// Configure Vitest (https://vitest.dev/config)
import { defineConfig } from 'vite'
export default defineConfig({
esbuild: {
target: 'es2022',
},
test: {
include: ['src/should_included_test.ts', 'test/**/*.test.ts'],
exclude: ['test/ignored.test.ts'],
browser: {
enabled: true,
// Configure browser options
instances: [
{
name: 'chromium',
provider: {
name: 'playwright',
},
},
]
},
},
})
- starting to report the bug, I discovered "Show Vitest Output Channel". Now there is all sorts of information in output, which I will attach. Following a suggestion there, I ran
- npx playwright install
- now, when I try to debug the test, a browser comes up, and the test appears to run. I can get a red X by changing the expected result. However, it still doesn't hit my breakpoint.
If I'm very fast, while the test is running and the red breakpoint symbol changes to a hollow white one, I can get into the Debug Diagnostics tool, and ask it why my breakpoint doesn't bind. It says,
✅ This breakpoint was initially set in:
C:\github\vscode\samples\basic-v4\test\add.test.ts line 6 column 1
❓ We couldn't find a corresponding source location, and didn't find any source with the name add.test.ts.
How did you expect this file to be loaded? (If you have a compilation step, you should pick 'sourcemap')
Loaded in directlyBe parsed from a sourcemap
Here's some hints that might help you:
Make sure you have "sourceMap": true in your tsconfig to generate sourcemaps.
- (this struck me as strange. Apparently it can find add.test.ts to report that the breakpoint was set there, but then can't find any such file at some later point)
- tried setting sourceMap:true in tsconfig.base.json
(If this is necessary, it would be nice if at least your samples already had it.) - made no difference.
In my own project, I tried various other things. AI suggested that Chrome might need to be configured to debug on port 9229, so I tried
providerOptions: {
launch: {
args: ["--remote-debugging-port=9229"]
}
}
AIs also suggested various things to put in launch.json. None helped.
The most common result, once I got playwright installed, is that nothing happens when I set a breakpoint and try to debug, except for the message about "Failed to report coverage".
Before installing playwright (trying to run tests directly in the browser), I've also seen the green-arrow command list change after the first attempt to Debug, with that option disappearing and "Debug all" wrongly added to the single arrow for a single test.
I also saw cases where a browser was launched and showed messages indicating it was trying to connect but did not succeed.
If this isn't a bug and I'm just doing something wrong, it would be very helpful to add to your documentation on this extension a detailed set of steps for debugging using a browser to run the tests. You can probably also tell, from the sad history above, that there are a lot of places where more helpful error information could be provided.
Output
[INFO 1:10:54 PM] [v0.0.0] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 1:10:55 PM] [API] Resolving configs: vscode/vitest.config.ts, monorepo-vitest-workspace/vitest.config.ts, e2e/vitest.config.ts, vue/vitest.config.ts, in-source/vitest.config.ts, readme/vitest.config.ts, e2e/vitest.config.ts, continuous/vitest.config.ts, browser/vitest.config.ts, basic-v4/vitest.config.ts, basic/vitest.config.ts, ast-collector/vitest.config.ts, imba/vite.config.js, app2/vitest.config.js, test/vitest.config.ts, app1/vitest.config.js, react copy/vitest.config.ts, react/vitest.config.ts
[INFO 1:10:56 PM] [API] Running Vitest v4.0.0-beta.8 (vscode/vitest.config.ts) with "C:\Program Files\Volta\node.EXE C:/Users/Thomson/.vscode/extensions/vitest.explorer-1.28.2/dist/worker.js"
[INFO 1:10:56 PM] [API] Running Vitest v4.0.0-beta.8 (monorepo-vitest-workspace/vitest.config.ts) with "C:\Program Files\Volta\node.EXE C:/Users/Thomson/.vscode/extensions/vitest.explorer-1.28.2/dist/worker.js"
[INFO 1:10:57 PM] [API] Running Vitest v4.0.0-beta.8 (e2e/vitest.config.ts) with "C:\Program Files\Volta\node.EXE C:/Users/Thomson/.vscode/extensions/vitest.explorer-1.28.2/dist/worker.js"
[INFO 1:10:57 PM] [API] Running Vitest v4.0.0-beta.8 (vue/vitest.config.ts) with "C:\Program Files\Volta\node.EXE C:/Users/Thomson/.vscode/extensions/vitest.explorer-1.28.2/dist/worker.js"
[INFO 1:10:58 PM] [Worker] (node:18824) ExperimentalWarning: CommonJS module C:\github\vscode\samples\vue\vitest.config.ts is loading ES Module C:\github\vscode\node_modules\.pnpm\vite@7.1.2_@types+node@24.0_bd3f38775a2691b349f03e762ebb1c5a\node_modules\vite\dist\node\index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created
[INFO 1:10:58 PM] [API] Running Vitest v4.0.0-beta.8 (in-source/vitest.config.ts) with "C:\Program Files\Volta\node.EXE C:/Users/Thomson/.vscode/extensions/vitest.explorer-1.28.2/dist/worker.js"
[INFO 1:10:58 PM] [Worker] (node:8468) ExperimentalWarning: CommonJS module C:\github\vscode\samples\in-source\vitest.config.ts is loading ES Module C:\github\vscode\node_modules\.pnpm\vite@7.1.2_@types+node@24.0_bd3f38775a2691b349f03e762ebb1c5a\node_modules\vite\dist\node\index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created
[INFO 1:10:58 PM] [API] Watching vitest.config.ts
[INFO 1:10:58 PM] [VSCODE] Watching vscode with pattern **/*
[INFO 1:10:58 PM] [API] Watching samples\monorepo-vitest-workspace\vitest.config.ts
[INFO 1:10:58 PM] [API] Watching test\e2e\vitest.config.ts
[INFO 1:10:58 PM] [API] Watching samples\vue\vitest.config.ts
[INFO 1:10:58 PM] [API] Watching samples\in-source\vitest.config.ts
[INFO 1:10:59 PM] [API] Collecting tests: samples/basic-v4/test/add.test.ts [chromium]
[INFO 1:12:03 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:12:03 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:12:03 PM] Enqueuing "add"
[1:12:05 PM] No task result for "add.test.ts [chromium]", ignoring
[1:12:05 PM] No task result for "addition", ignoring
[1:12:05 PM] Enqueuing "add" because it was just collected
[1:12:05 PM] Ignore "sum" during collection
[1:12:05 PM] Ignore "skipped" during collection
[1:12:05 PM] Ignore "todo" during collection
[1:12:05 PM] Ignore "async task" during collection
[1:12:05 PM] Ignore "async task 0.5s" during collection
[1:12:05 PM] Ignore "async task 1s" during collection
[1:12:05 PM] Ignore "long task" during collection
[1:12:05 PM] Ignore "testing" during collection
[1:12:05 PM] Ignore "run" during collection
[1:12:05 PM] Ignore "mul" during collection
[1:12:05 PM] Ignore "mul fail" during collection
[1:12:05 PM] No errors found for "add.test.ts [chromium]"
[1:12:05 PM] No errors found for "addition"
[1:12:05 PM] Marking "add" as failed with 1 errors
[1:12:05 PM] Marking "sum" as skipped
[1:12:05 PM] Marking "skipped" as skipped
[1:12:05 PM] Marking "todo" as skipped
[1:12:05 PM] Marking "async task" as skipped
[1:12:05 PM] Marking "async task 0.5s" as skipped
[1:12:05 PM] Marking "async task 1s" as skipped
[1:12:05 PM] Marking "long task" as skipped
[1:12:05 PM] No errors found for "testing"
[1:12:05 PM] No errors found for "add.test.ts [chromium]"
[1:12:05 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:12:05 PM] Test run promise is finished, the queue is 0
[1:12:05 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:12:27 PM] [VSCODE] File changed: samples\basic-v4\test\add.test.ts
[1:12:27 PM] No test run to finish for
[1:12:27 PM] No files to finish
[1:12:27 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[INFO 1:12:31 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:12:31 PM] [DEBUG] Debugging started
[INFO 1:12:32 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:12:32 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:12:32 PM] Enqueuing "add"
[1:12:34 PM] No task result for "add.test.ts [chromium]", ignoring
[1:12:34 PM] No task result for "addition", ignoring
[1:12:34 PM] Enqueuing "add" because it was just collected
[1:12:34 PM] Ignore "sum" during collection
[1:12:34 PM] Ignore "skipped" during collection
[1:12:34 PM] Ignore "todo" during collection
[1:12:34 PM] Ignore "async task" during collection
[1:12:34 PM] Ignore "async task 0.5s" during collection
[1:12:34 PM] Ignore "async task 1s" during collection
[1:12:34 PM] Ignore "long task" during collection
[1:12:34 PM] Ignore "testing" during collection
[1:12:34 PM] Ignore "run" during collection
[1:12:34 PM] Ignore "mul" during collection
[1:12:34 PM] Ignore "mul fail" during collection
[1:12:34 PM] No errors found for "add.test.ts [chromium]"
[1:12:34 PM] No errors found for "addition"
[1:12:34 PM] Marking "add" as passed
[1:12:34 PM] Marking "sum" as skipped
[1:12:34 PM] Marking "skipped" as skipped
[1:12:34 PM] Marking "todo" as skipped
[1:12:34 PM] Marking "async task" as skipped
[1:12:34 PM] Marking "async task 0.5s" as skipped
[1:12:34 PM] Marking "async task 1s" as skipped
[1:12:34 PM] Marking "long task" as skipped
[1:12:34 PM] No errors found for "testing"
[1:12:34 PM] No errors found for "add.test.ts [chromium]"
[1:12:34 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:12:34 PM] Test run promise is finished, the queue is 0
[1:12:34 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:12:34 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:12:34 PM] Ending test run <none>
[1:12:34 PM] Disposing test runner
[1:12:34 PM] Ending test run <none>
[INFO 1:14:50 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:14:51 PM] [DEBUG] Debugging started
[INFO 1:14:51 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:14:51 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:14:51 PM] Enqueuing "add"
[1:14:53 PM] No task result for "add.test.ts [chromium]", ignoring
[1:14:53 PM] No task result for "addition", ignoring
[1:14:53 PM] Enqueuing "add" because it was just collected
[1:14:53 PM] Ignore "sum" during collection
[1:14:53 PM] Ignore "skipped" during collection
[1:14:53 PM] Ignore "todo" during collection
[1:14:53 PM] Ignore "async task" during collection
[1:14:53 PM] Ignore "async task 0.5s" during collection
[1:14:53 PM] Ignore "async task 1s" during collection
[1:14:53 PM] Ignore "long task" during collection
[1:14:53 PM] Ignore "testing" during collection
[1:14:53 PM] Ignore "run" during collection
[1:14:53 PM] Ignore "mul" during collection
[1:14:53 PM] Ignore "mul fail" during collection
[1:14:53 PM] No errors found for "add.test.ts [chromium]"
[1:14:53 PM] No errors found for "addition"
[1:14:53 PM] Marking "add" as passed
[1:14:53 PM] Marking "sum" as skipped
[1:14:53 PM] Marking "skipped" as skipped
[1:14:53 PM] Marking "todo" as skipped
[1:14:53 PM] Marking "async task" as skipped
[1:14:53 PM] Marking "async task 0.5s" as skipped
[1:14:53 PM] Marking "async task 1s" as skipped
[1:14:53 PM] Marking "long task" as skipped
[1:14:53 PM] No errors found for "testing"
[1:14:53 PM] No errors found for "add.test.ts [chromium]"
[1:14:53 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:14:53 PM] Test run promise is finished, the queue is 0
[1:14:53 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:14:54 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:14:54 PM] Ending test run <none>
[1:14:54 PM] Disposing test runner
[1:14:54 PM] Ending test run <none>
[INFO 1:14:59 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:15:00 PM] [DEBUG] Debugging started
[INFO 1:15:00 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:15:00 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:15:00 PM] Enqueuing "add"
[1:15:02 PM] No task result for "add.test.ts [chromium]", ignoring
[1:15:02 PM] No task result for "addition", ignoring
[1:15:02 PM] Enqueuing "add" because it was just collected
[1:15:02 PM] Ignore "sum" during collection
[1:15:02 PM] Ignore "skipped" during collection
[1:15:02 PM] Ignore "todo" during collection
[1:15:02 PM] Ignore "async task" during collection
[1:15:02 PM] Ignore "async task 0.5s" during collection
[1:15:02 PM] Ignore "async task 1s" during collection
[1:15:02 PM] Ignore "long task" during collection
[1:15:02 PM] Ignore "testing" during collection
[1:15:02 PM] Ignore "run" during collection
[1:15:02 PM] Ignore "mul" during collection
[1:15:02 PM] Ignore "mul fail" during collection
[1:15:02 PM] No errors found for "add.test.ts [chromium]"
[1:15:02 PM] No errors found for "addition"
[1:15:02 PM] Marking "add" as passed
[1:15:02 PM] Marking "sum" as skipped
[1:15:02 PM] Marking "skipped" as skipped
[1:15:02 PM] Marking "todo" as skipped
[1:15:02 PM] Marking "async task" as skipped
[1:15:02 PM] Marking "async task 0.5s" as skipped
[1:15:02 PM] Marking "async task 1s" as skipped
[1:15:02 PM] Marking "long task" as skipped
[1:15:02 PM] No errors found for "testing"
[1:15:02 PM] No errors found for "add.test.ts [chromium]"
[1:15:02 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:15:02 PM] Test run promise is finished, the queue is 0
[1:15:02 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:15:03 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:15:03 PM] Ending test run <none>
[1:15:03 PM] Disposing test runner
[1:15:03 PM] Ending test run <none>
[INFO 1:15:16 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:15:16 PM] [DEBUG] Debugging started
[INFO 1:15:17 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:15:17 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:15:17 PM] Enqueuing "add"
[1:15:19 PM] No task result for "add.test.ts [chromium]", ignoring
[1:15:19 PM] No task result for "addition", ignoring
[1:15:19 PM] Enqueuing "add" because it was just collected
[1:15:19 PM] Ignore "sum" during collection
[1:15:19 PM] Ignore "skipped" during collection
[1:15:19 PM] Ignore "todo" during collection
[1:15:19 PM] Ignore "async task" during collection
[1:15:19 PM] Ignore "async task 0.5s" during collection
[1:15:19 PM] Ignore "async task 1s" during collection
[1:15:19 PM] Ignore "long task" during collection
[1:15:19 PM] Ignore "testing" during collection
[1:15:19 PM] Ignore "run" during collection
[1:15:19 PM] Ignore "mul" during collection
[1:15:19 PM] Ignore "mul fail" during collection
[1:15:19 PM] No errors found for "add.test.ts [chromium]"
[1:15:19 PM] No errors found for "addition"
[1:15:19 PM] Marking "add" as passed
[1:15:19 PM] Marking "sum" as skipped
[1:15:19 PM] Marking "skipped" as skipped
[1:15:19 PM] Marking "todo" as skipped
[1:15:19 PM] Marking "async task" as skipped
[1:15:19 PM] Marking "async task 0.5s" as skipped
[1:15:19 PM] Marking "async task 1s" as skipped
[1:15:19 PM] Marking "long task" as skipped
[1:15:19 PM] No errors found for "testing"
[1:15:19 PM] No errors found for "add.test.ts [chromium]"
[1:15:19 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:15:19 PM] Test run promise is finished, the queue is 0
[1:15:19 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:15:19 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:15:19 PM] Ending test run <none>
[1:15:19 PM] Disposing test runner
[1:15:19 PM] Ending test run <none>
[INFO 1:15:23 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:15:23 PM] [DEBUG] Debugging started
[INFO 1:15:24 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:15:24 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:15:24 PM] Enqueuing "add"
[1:15:25 PM] No task result for "add.test.ts [chromium]", ignoring
[1:15:25 PM] No task result for "addition", ignoring
[1:15:25 PM] Enqueuing "add" because it was just collected
[1:15:25 PM] Ignore "sum" during collection
[1:15:25 PM] Ignore "skipped" during collection
[1:15:25 PM] Ignore "todo" during collection
[1:15:25 PM] Ignore "async task" during collection
[1:15:25 PM] Ignore "async task 0.5s" during collection
[1:15:25 PM] Ignore "async task 1s" during collection
[1:15:25 PM] Ignore "long task" during collection
[1:15:25 PM] Ignore "testing" during collection
[1:15:25 PM] Ignore "run" during collection
[1:15:25 PM] Ignore "mul" during collection
[1:15:25 PM] Ignore "mul fail" during collection
[1:15:25 PM] No errors found for "add.test.ts [chromium]"
[1:15:25 PM] No errors found for "addition"
[1:15:25 PM] Marking "add" as passed
[1:15:25 PM] Marking "sum" as skipped
[1:15:25 PM] Marking "skipped" as skipped
[1:15:25 PM] Marking "todo" as skipped
[1:15:25 PM] Marking "async task" as skipped
[1:15:25 PM] Marking "async task 0.5s" as skipped
[1:15:25 PM] Marking "async task 1s" as skipped
[1:15:25 PM] Marking "long task" as skipped
[1:15:25 PM] No errors found for "testing"
[1:15:25 PM] No errors found for "add.test.ts [chromium]"
[1:15:25 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:15:25 PM] Test run promise is finished, the queue is 0
[1:15:26 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:15:26 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:15:26 PM] Ending test run <none>
[1:15:26 PM] Disposing test runner
[1:15:26 PM] Ending test run <none>
[INFO 1:15:31 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:15:31 PM] [DEBUG] Debugging started
[INFO 1:15:32 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:15:32 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:15:32 PM] Enqueuing "add"
[1:15:33 PM] No task result for "add.test.ts [chromium]", ignoring
[1:15:33 PM] No task result for "addition", ignoring
[1:15:33 PM] Enqueuing "add" because it was just collected
[1:15:33 PM] Ignore "sum" during collection
[1:15:33 PM] Ignore "skipped" during collection
[1:15:33 PM] Ignore "todo" during collection
[1:15:33 PM] Ignore "async task" during collection
[1:15:33 PM] Ignore "async task 0.5s" during collection
[1:15:33 PM] Ignore "async task 1s" during collection
[1:15:33 PM] Ignore "long task" during collection
[1:15:33 PM] Ignore "testing" during collection
[1:15:33 PM] Ignore "run" during collection
[1:15:33 PM] Ignore "mul" during collection
[1:15:33 PM] Ignore "mul fail" during collection
[1:15:33 PM] No errors found for "add.test.ts [chromium]"
[1:15:33 PM] No errors found for "addition"
[1:15:33 PM] Marking "add" as passed
[1:15:33 PM] Marking "sum" as skipped
[1:15:33 PM] Marking "skipped" as skipped
[1:15:33 PM] Marking "todo" as skipped
[1:15:33 PM] Marking "async task" as skipped
[1:15:33 PM] Marking "async task 0.5s" as skipped
[1:15:33 PM] Marking "async task 1s" as skipped
[1:15:33 PM] Marking "long task" as skipped
[1:15:33 PM] No errors found for "testing"
[1:15:33 PM] No errors found for "add.test.ts [chromium]"
[1:15:33 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:15:33 PM] Test run promise is finished, the queue is 0
[1:15:33 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:15:34 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:15:34 PM] Ending test run <none>
[1:15:34 PM] Disposing test runner
[1:15:34 PM] Ending test run <none>
[1:21:16 PM] [VSCODE] File changed: tsconfig.base.json
[INFO 1:21:42 PM] [DEBUG] Starting debugging session C:\Program Files\Volta\node.EXE
[INFO 1:21:43 PM] [DEBUG] Debugging started
[INFO 1:21:43 PM] Running 1 file(s) with name pattern: ^\s?addition add$
[1:21:43 PM] Starting a test run because samples/basic-v4/test/add.test.ts triggered a watch rerun event
[1:21:43 PM] Enqueuing "add"
[1:21:45 PM] No task result for "add.test.ts [chromium]", ignoring
[1:21:45 PM] No task result for "addition", ignoring
[1:21:45 PM] Enqueuing "add" because it was just collected
[1:21:45 PM] Ignore "sum" during collection
[1:21:45 PM] Ignore "skipped" during collection
[1:21:45 PM] Ignore "todo" during collection
[1:21:45 PM] Ignore "async task" during collection
[1:21:45 PM] Ignore "async task 0.5s" during collection
[1:21:45 PM] Ignore "async task 1s" during collection
[1:21:45 PM] Ignore "long task" during collection
[1:21:45 PM] Ignore "testing" during collection
[1:21:45 PM] Ignore "run" during collection
[1:21:45 PM] Ignore "mul" during collection
[1:21:45 PM] Ignore "mul fail" during collection
[1:21:45 PM] No errors found for "add.test.ts [chromium]"
[1:21:45 PM] No errors found for "addition"
[1:21:45 PM] Marking "add" as passed
[1:21:45 PM] Marking "sum" as skipped
[1:21:45 PM] Marking "skipped" as skipped
[1:21:45 PM] Marking "todo" as skipped
[1:21:45 PM] Marking "async task" as skipped
[1:21:45 PM] Marking "async task 0.5s" as skipped
[1:21:45 PM] Marking "async task 1s" as skipped
[1:21:45 PM] Marking "long task" as skipped
[1:21:45 PM] No errors found for "testing"
[1:21:45 PM] No errors found for "add.test.ts [chromium]"
[1:21:45 PM] Ending test run samples/basic-v4/test/add.test.ts
[1:21:45 PM] Test run promise is finished, the queue is 0
[1:21:45 PM] [VSCODE] Ignoring file: node_modules\.vite\vitest\da39a3ee5e6b4b0d3255bfef95601890afd80709\results.json
[1:21:45 PM] [API] Vitest WebSocket connection closed, cannot call RPC anymore.
[1:21:45 PM] Ending test run <none>
[1:21:45 PM] Disposing test runner
[1:21:45 PM] Ending test run <none>
Extension Version
1.28.2
Vitest Version
vitest/4.0.0-beta.8 win32-x64 node-v22.12.0
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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.