diff --git a/jest-preset.json b/jest-preset.json index 938b9c1328f..994c64c229a 100644 --- a/jest-preset.json +++ b/jest-preset.json @@ -8,7 +8,7 @@ }, "moduleNameMapper": { "^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|png|psd|svg|webp)$": "RelativeImageStub", - "^React$": "node_modules/react" + "^React$": "/node_modules/react" }, "modulePathIgnorePatterns": [ "/node_modules/react-native/Libraries/react-native/",