Skip to content

Commit

Permalink
revert normalize.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
victorphoenix3 committed Oct 24, 2020
1 parent 1535af7 commit 76d87d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,8 @@

### Fixes

- `[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))

### Chore & Maintenance

### Performance
Expand Down
3 changes: 1 addition & 2 deletions packages/jest-config/src/normalize.ts
Expand Up @@ -989,9 +989,8 @@ export default function normalize(
newOptions.onlyFailures = false;
} else if (newOptions.testPathPattern) {
// When passing a test path pattern we don't want to only monitor changed
// or failed files unless `--watch` is also passed.
// files unless `--watch` is also passed.
newOptions.onlyChanged = newOptions.watch;
newOptions.onlyFailures = newOptions.watch;
}

if (!newOptions.onlyChanged) {
Expand Down

0 comments on commit 76d87d1

Please sign in to comment.