Skip to content

Commit 2d59350

Browse files
committed
set hasteImplModulePath to undefined, not null
1 parent 959e3d5 commit 2d59350

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/jest-config/src/normalize.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,14 +646,16 @@ export default function normalize(
646646
case 'haste':
647647
value = {...oldOptions[key]};
648648
if (value.hasteImplModulePath != null) {
649-
value.hasteImplModulePath = resolve(newOptions.resolver, {
649+
const resolvedHasteImpl = resolve(newOptions.resolver, {
650650
filePath: replaceRootDirInPath(
651651
options.rootDir,
652652
value.hasteImplModulePath,
653653
),
654654
key: 'haste.hasteImplModulePath',
655655
rootDir: options.rootDir,
656656
});
657+
658+
value.hasteImplModulePath = resolvedHasteImpl || undefined;
657659
}
658660
break;
659661
case 'projects':

0 commit comments

Comments
 (0)