mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 21:20:50 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36495 It looks like Jest is not running `babel/transform-modules-commonjs` on all files, and therefore when including `"import"` as a Package Exports condition in Jest, this misbehaved (0a3c55562b
). This is a hotfix to restore CI stability. Changelog: [Fix][Internal] Hotfix adjusting Jest changes added in0a3c55562b
Reviewed By: cipolleschi, hoxyq Differential Revision: D44130442 fbshipit-source-id: 6407519d0d5459ef422afe21be26a2e3141bedf3
This commit is contained in:
parent
419b41f06d
commit
681d7f8113
2
jest/react-native-env.js
vendored
2
jest/react-native-env.js
vendored
@ -12,5 +12,5 @@
|
||||
const NodeEnv = require('jest-environment-node').TestEnvironment;
|
||||
|
||||
module.exports = class ReactNativeEnv extends NodeEnv {
|
||||
customExportConditions = ['import', 'require', 'react-native'];
|
||||
customExportConditions = ['require', 'react-native'];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user