Skip to content

Commit

Permalink
fix: support jest.config.json (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsstiers authored Dec 20, 2023
1 parent 43cc89b commit a1d74f2
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 a1d74f2

Please sign in to comment.