diff --git a/jest.config.js b/jest.config.js index d4ac1188db3..5a36fd90a5e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,6 +11,11 @@ const {defaults} = require('jest-config'); +const PODS_LOCATIONS = [ + 'packages/rn-tester/Pods', + 'packages/helloworld/ios/Pods', +]; + module.exports = { transform: { '^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$': @@ -33,6 +38,8 @@ module.exports = { '/packages/react-native/sdks', '/packages/react-native/Libraries/Renderer', '/packages/react-native-test-renderer/src', + '/packages/react-native/sdks/hermes/', + ...PODS_LOCATIONS, ], transformIgnorePatterns: ['node_modules/(?!@react-native/)'], haste: { @@ -40,7 +47,11 @@ module.exports = { platforms: ['ios', 'android'], }, moduleFileExtensions: ['fb.js'].concat(defaults.moduleFileExtensions), - modulePathIgnorePatterns: ['scripts/.*/__fixtures__/'], + modulePathIgnorePatterns: [ + 'scripts/.*/__fixtures__/', + '/packages/react-native/sdks/hermes/', + ...PODS_LOCATIONS, + ], unmockedModulePathPatterns: [ 'node_modules/react/', 'packages/react-native/Libraries/Renderer',