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;