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 1b73390 commit c48dc3b
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 c48dc3b

Please sign in to comment.