Skip to content

Commit

Permalink
fix runtime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 19, 2022
1 parent 054c1ef commit ac94768
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/jest-runtime/src/__mocks__/createRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ const setupTransform = (config, rootDir) => {
path.resolve(rootDir, transform[regex]),
]);
}
return [['^.+\\.[jt]sx?$', require.resolve('babel-jest')]];
return [
[
'^.+\\.[jt]sx?$',
require.resolve('babel-jest'),
{configFile: require.resolve('../../../../babel.config')},
],
];
};

module.exports = async function createRuntime(filename, projectConfig) {
Expand Down

0 comments on commit ac94768

Please sign in to comment.