We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jest.config.mjs
jest.config.cjs
1 parent 4077ccd commit 09eef92Copy full SHA for 09eef92
src/utils/test-runner.js
@@ -59,7 +59,10 @@ function getJestArgs(argv) {
59
}
60
61
// Provide default configuration when none is present at the project root.
62
- const hasCustomConfig = fs.existsSync(path.resolve(PROJECT_ROOT, 'jest.config.js'));
+ const hasCustomConfig =
63
+ fs.existsSync(path.resolve(PROJECT_ROOT, 'jest.config.js')) ||
64
+ fs.existsSync(path.resolve(PROJECT_ROOT, 'jest.config.mjs')) ||
65
+ fs.existsSync(path.resolve(PROJECT_ROOT, 'jest.config.cjs'));
66
if (!hasCustomConfig) {
67
jestArgs.unshift(`--config=${JSON.stringify(jestConfig)}`);
68
0 commit comments