Skip to content

Commit

Permalink
fix: support jest.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zsstiers committed Dec 18, 2023
1 parent 43cc89b commit da7e13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jestRunnerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit da7e13e

Please sign in to comment.