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