Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 6bedb83

Browse files
fix(atlauncher-scripts): fix issue with root dir not being correct when running jest
1 parent 40df329 commit 6bedb83

File tree

1 file changed

+7
-1
lines changed
  • packages/atlauncher-scripts/scripts

1 file changed

+7
-1
lines changed

packages/atlauncher-scripts/scripts/test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ process.on('unhandledRejection', (err) => {
4141

4242
const processArguments = [];
4343

44-
const command = [utils.getNodeModulesBinPath('jest'), '--config', utils.getRootFile('.jestrc')];
44+
const command = [
45+
utils.getNodeModulesBinPath('jest'),
46+
'--rootDir',
47+
utils.getProjectBasePath(),
48+
'--config',
49+
utils.getRootFile('.jestrc'),
50+
];
4551

4652
if (watch) {
4753
command.push('--watch');

0 commit comments

Comments
 (0)