Skip to content

Commit

Permalink
set hasteImplModulePath to undefined, not null
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 25, 2019
1 parent 959e3d5 commit 2d59350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-config/src/normalize.ts
Expand Up @@ -646,14 +646,16 @@ export default function normalize(
case 'haste':
value = {...oldOptions[key]};
if (value.hasteImplModulePath != null) {
value.hasteImplModulePath = resolve(newOptions.resolver, {
const resolvedHasteImpl = resolve(newOptions.resolver, {
filePath: replaceRootDirInPath(
options.rootDir,
value.hasteImplModulePath,
),
key: 'haste.hasteImplModulePath',
rootDir: options.rootDir,
});

value.hasteImplModulePath = resolvedHasteImpl || undefined;
}
break;
case 'projects':
Expand Down

0 comments on commit 2d59350

Please sign in to comment.