diff --git a/jest/react-native-env.js b/jest/react-native-env.js index 624d3648766..c699a97d0df 100644 --- a/jest/react-native-env.js +++ b/jest/react-native-env.js @@ -12,7 +12,5 @@ const NodeEnv = require('jest-environment-node').TestEnvironment; module.exports = class ReactNativeEnv extends NodeEnv { - exportConditions() { - return ['react-native']; - } + customExportConditions = ['import', 'require', 'react-native']; };