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 24, 2019
1 parent 384389b commit 25600ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-config/src/normalize.ts
Original file line number Diff line number Diff line change
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 25600ee

Please sign in to comment.