Skip to content

Commit

Permalink
fix jest script
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Oct 13, 2023
1 parent 3bd4691 commit f73cdb9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tools/scripts-core/src/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ export default async function test(env, presetApi, options) {
const jestConfigPath =
getUserConfigFile('jest.config.js') || path.join(configPath, 'jest.config.js');

const jest = utils.path.resolveBin('jest');
return utils.process.spawn(jest, ['--config', jestConfigPath].concat(options), {
stdio: 'inherit',
env,
});
return utils.process.spawn(
new URL(import.meta.resolve('jest-cli/bin/jest')).pathname,
['--config', jestConfigPath].concat(options),
{
stdio: 'inherit',
env,
},
);
}

0 comments on commit f73cdb9

Please sign in to comment.