From eda28180a2c32ee9d4d61ac4ba639e8f6d6ab8ea Mon Sep 17 00:00:00 2001 From: Kenrick Date: Thu, 5 Sep 2019 20:59:42 +0800 Subject: [PATCH] Update index.ts --- packages/jest-config/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-config/src/index.ts b/packages/jest-config/src/index.ts index 47d76db868ef..35ff3c73e5f3 100644 --- a/packages/jest-config/src/index.ts +++ b/packages/jest-config/src/index.ts @@ -275,7 +275,7 @@ export function readConfigs( let projects = projectPaths; let configPath: Config.Path | null | undefined; - { + if (projectPaths.length === 1) { const parsedConfig = readConfig(argv, projects[0]); configPath = parsedConfig.configPath;