Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 22, 2020
1 parent 9d42dcb commit d53ed83
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions packages/jest-runtime/src/__mocks__/createRuntime.js
Expand Up @@ -42,20 +42,7 @@ const setupTransform = (config, rootDir) => {
path.resolve(rootDir, transform[regex]),
]);
}
return [
[
'^.+\\.[jt]sx?$',
path.resolve(
__dirname,
'..',
'..',
'..',
'babel-jest',
'build',
'index.js',
),
],
];
return [['^.+\\.[jt]sx?$', require.resolve('babel-jest')]];
};

module.exports = async function createRuntime(filename, config) {
Expand Down Expand Up @@ -110,7 +97,7 @@ module.exports = async function createRuntime(filename, config) {
config,
environment,
Runtime.createResolver(config, hasteMap.moduleMap),
undefined,
new Map(),
undefined,
filename,
);
Expand Down

0 comments on commit d53ed83

Please sign in to comment.