diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index 5d60d45c2053..609a46cfae27 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -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) {