Skip to content

Commit 7ac5a3b

Browse files
committed
doc: note watch mode reruns all files with isolation none
The watch mode docs say only the tests affected by a change are rerun, but with `--test-isolation=none` the test runner reruns every test file in the run. Document how watch mode depends on the isolation mode. Part of the wording was suggested by an AI code review tool. Signed-off-by: Ethan Resnick <ethan.resnick@gmail.com>
1 parent 0c5be9d commit 7ac5a3b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎doc/api/test.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,11 @@ their dependencies. When a change is detected, the test runner will
679679
rerun the tests affected by the change.
680680
The test runner will continue to run until the process is terminated.
681681

682+
This behavior depends on the test isolation mode. With `--test-isolation=process`
683+
(the default), only the test files affected by the change are rerun. With
684+
`--test-isolation=none`, the test runner reruns every test file in the run.
685+
Tests share a single process in this mode.
686+
682687
## Global setup and teardown
683688

684689
<!-- YAML

0 commit comments

Comments
 (0)