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
Snapshot support and some other features depend on the runner. If you don't want to lose it, you can extend your runner from `TestRunner` imported from `vitest`. It also exposes `NodeBenchmarkRunner`, if you want to extend benchmark functionality.
Copy file name to clipboardExpand all lines: api/test.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,13 +217,21 @@ describe(
217
217
218
218
是否与测试套件中其他并发测试并行运行。
219
219
220
-
### sequential
220
+
Set`concurrent`to`false`tooptoutofconcurrencyinheritedfrom [`describe.concurrent`](/api/describe#describe-concurrent) or [`sequence.concurrent`](/config/sequence#sequence-concurrent):
Track coverage of the `node:child_process` and `node:worker_threads` spawned during test run.
473
+
474
+
Note that this option has some performance overhead as its using [`NODE_V8_COVERAGE`](https://nodejs.org/api/cli.html#node-v8-coveragedir) internally. This triggers Node to write lots of unnecessary files on file system.
- **Default:** [`'default'`](/guide/reporters#default-reporter). See [Default Reporters](/guide/reporters#default-reporters) for environment-specific behavior.
24
+
- **CLI:**
25
+
- `--reporter=tap` for a single reporter
26
+
- `--reporter=verbose --reporter=github-actions` for multiple reporters
0 commit comments