From 9904a83f2edcc29fa6f1d18aa534a926782072d7 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 29 Jan 2019 18:55:02 +0100 Subject: [PATCH] oops --- packages/jest-config/src/normalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-config/src/normalize.js b/packages/jest-config/src/normalize.js index 439bce480f0d..f2304fc71791 100644 --- a/packages/jest-config/src/normalize.js +++ b/packages/jest-config/src/normalize.js @@ -200,7 +200,7 @@ const normalizeCollectCoverageFrom = (options: InitialOptions, key: string) => { value = JSON.parse(options[key]); } catch (e) {} - if (value && !Array.isArray(value)) { + if (options[key] && !Array.isArray(value)) { value = [options[key]]; } } else {