Skip to content

Commit 76d87d1

Browse files
revert normalize.ts
1 parent 1535af7 commit 76d87d1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
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))
10+
911
### Chore & Maintenance
1012

1113
### Performance

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)