diff --git a/src/jestRunnerConfig.ts b/src/jestRunnerConfig.ts index ee272d9..9129599 100644 --- a/src/jestRunnerConfig.ts +++ b/src/jestRunnerConfig.ts @@ -96,7 +96,7 @@ export class JestRunnerConfig { let currentFolderPath: string = targetPath || path.dirname(vscode.window.activeTextEditor.document.fileName); let currentFolderConfigPath: string; do { - for (const configFilename of ['jest.config.js', 'jest.config.ts', 'jest.config.cjs', 'jest.config.mjs']) { + for (const configFilename of ['jest.config.js', 'jest.config.ts', 'jest.config.cjs', 'jest.config.mjs', 'jest.config.json']) { currentFolderConfigPath = path.join(currentFolderPath, configFilename); if (fs.existsSync(currentFolderConfigPath)) {