From da7e13ef2ce7fe7b0b9f453ae458a08207c8ebbe Mon Sep 17 00:00:00 2001 From: Zachary Stiers Date: Mon, 18 Dec 2023 15:55:58 -0800 Subject: [PATCH] fix: support jest.config.json --- 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)) {