Skip to content

Commit e14f661

Browse files
pulkit-30UlisesGascon
authored andcommitted
doc: shard not supported with watch mode
PR-URL: #50640 Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent b3d015d commit e14f661

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/test.md

+5
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,11 @@ changes:
11611161
of shards to split the test files to. This option is _required_.
11621162
* Returns: {TestsStream}
11631163

1164+
**Note:** `shard` is used to horizontally parallelize test running across
1165+
machines or processes, ideal for large-scale executions across varied
1166+
environments. It's incompatible with `watch` mode, tailored for rapid
1167+
code iteration by automatically rerunning tests on file changes.
1168+
11641169
```mjs
11651170
import { tap } from 'node:test/reporters';
11661171
import { run } from 'node:test';

0 commit comments

Comments
 (0)