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
Remove special .only() behavior in watch mode.
This is a historical feature back from when AVA tried to persist "runExclusive" during regular runs. This behavior
conflicts with interactive mode, and in any case interactive mode makes it easier to focus on a specific test file or title.
Implement --match using the selected flag. This is a newer flag, previously used for line number selection. It's a better choice than overloading the `exclusive` flag used with `.only()`.
Together these changes simplify the runner logic, allowing for the change of behavior.
Copy file name to clipboardExpand all lines: docs/recipes/watch-mode.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,6 @@ Dependency tracking works for `require()` and `import` syntax, as supported by [
42
42
43
43
Files accessed using the `fs` module are not tracked.
44
44
45
-
## Watch mode and the `.only` modifier
46
-
47
-
The [`.only` modifier] disables watch mode's dependency tracking algorithm. When a change is made, all `.only` tests will be rerun, regardless of whether the test depends on the changed file.
48
-
49
45
## Watch mode and CI
50
46
51
47
If you run AVA in your CI with watch mode, the execution will exit with an error (`Error : Watch mode is not available in CI, as it prevents AVA from terminating.`). AVA will not run with the `--watch` (`-w`) option in CI, because CI processes should terminate, and with the `--watch` option, AVA will never terminate.
Copy file name to clipboardExpand all lines: test/watch-mode/scenarios.js
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -95,24 +95,6 @@ test('runs test file when source it depends on is deleted', withFixture('basic')
95
95
});
96
96
});
97
97
98
-
test('once test files containing .only() tests are encountered, always run those, but exclusively the .only tests',withFixture('exclusive'),async(t,fixture)=>{
0 commit comments