From a1d74f23b91540d5359b933dd604abd7b5c6df45 Mon Sep 17 00:00:00 2001 From: zsstiers <139281855+zsstiers@users.noreply.github.com> Date: Tue, 19 Dec 2023 21:38:53 -0800 Subject: [PATCH] fix: support jest.config.json (#346) --- src/jestRunnerConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {