For a test that throws an error, test results show "TypeError: n.getBrowserSourceMapModuleById is not a function" instead of the actual error.
Full output on Test Results tab:
⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯
TypeError: n.getBrowserSourceMapModuleById is not a function
❯ Object.getSourceMap ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3421
❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:13:11868
❯ Ju ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:13:11814
❯ ts ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:15:131
❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3397
❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3352
❯ xr.onTaskUpdate ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3286
Describe the bug
For a test that throws an error, test results show "TypeError: n.getBrowserSourceMapModuleById is not a function" instead of the actual error.
Full output on Test Results tab: ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run. This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ TypeError: n.getBrowserSourceMapModuleById is not a function ❯ Object.getSourceMap ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3421 ❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:13:11868 ❯ Ju ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:13:11814 ❯ ts ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:15:131 ❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3397 ❯ ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3352 ❯ xr.onTaskUpdate ../../Users/apaven/.vscode/extensions/vitest.explorer-1.0.5/dist/worker.js:39:3286
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Reproduction
https://github.com/AlexPaven/vitest-repro (test which throws an error with minimal config)
checkout +
pnpm i
;pnpm test
reports errors correctly, Vitest Explorer does notOS: win11
Output
Version
1.0.5
Validations