Hotfix for Jest preset changes in 0a3c555 (#36495)

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 in 0a3c55562b

Reviewed By: cipolleschi, hoxyq

Differential Revision: D44130442

fbshipit-source-id: 6407519d0d5459ef422afe21be26a2e3141bedf3
This commit is contained in:
Alex Hunt 2023-03-16 04:57:16 -07:00 committed by Facebook GitHub Bot
parent 419b41f06d
commit 681d7f8113

View File

@ -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'];
};