|
### Trace View |
|
|
|
With Vitest 5, the extension can open recorded browser interactions for a selected test in [Vitest Trace View](https://vitest.dev/guide/browser/trace-view.html). Enable Trace View and the HTML reporter in your existing Browser Mode configuration: |
|
|
|
```ts |
|
import { configDefaults, defineConfig } from 'vitest/config' |
|
|
|
export default defineConfig({ |
|
test: { |
|
reporters: [...configDefaults.reporters, 'html'], |
|
browser: { |
|
// Your existing Browser Mode configuration |
|
traceView: true, |
|
}, |
|
}, |
|
}) |
|
``` |
One approach would be to add explicit Run with trace view button, which triggers a run with auto configured html reporter and traceView.
vscode/README.md
Lines 138 to 154 in 121fa53
One approach would be to add explicit
Run with trace viewbutton, which triggers a run with auto configured html reporter and traceView.