From 1ad7f7c80c37eb1bd72df2de7ea2f785b03a0351 Mon Sep 17 00:00:00 2001 From: victorphoenix3 Date: Sat, 24 Oct 2020 08:10:54 +0530 Subject: [PATCH] revert normalize.ts --- packages/jest-config/src/normalize.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {