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 1ad7f7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/jest-config/src/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,10 @@ export default function normalize(

if (argv.all) {
newOptions.onlyChanged = false;
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 1ad7f7c

Please # to comment.