Skip to content

Commit 2e7ba01

Browse files
fix: revert watch mode change for onlyFailures mode (#10692)
1 parent 0eee946 commit 2e7ba01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Fixes
88

9+
- `[jest-config]` Fix bug introduced in watch mode by PR[#10678](https://github.com/facebook/jest/pull/10678/files#r511037803) ([#10692](https://github.com/facebook/jest/pull/10692))
910
- `[expect]` Stop modifying the sample in `expect.objectContaining()` ([#10711](https://github.com/facebook/jest/pull/10711))
1011

1112
### Chore & Maintenance

packages/jest-config/src/normalize.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,8 @@ export default function normalize(
989989
newOptions.onlyFailures = false;
990990
} else if (newOptions.testPathPattern) {
991991
// When passing a test path pattern we don't want to only monitor changed
992-
// or failed files unless `--watch` is also passed.
992+
// files unless `--watch` is also passed.
993993
newOptions.onlyChanged = newOptions.watch;
994-
newOptions.onlyFailures = newOptions.watch;
995994
}
996995

997996
if (!newOptions.onlyChanged) {

0 commit comments

Comments
 (0)