Skip to content

Commit

Permalink
Hotfix for Jest preset changes in 0a3c555 (#36495)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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 (0a3c555).

This is a hotfix to restore CI stability.

Changelog:
[Fix][Internal] Hotfix adjusting Jest changes added in 0a3c555

Reviewed By: cipolleschi, hoxyq

Differential Revision: D44130442

fbshipit-source-id: 6407519d0d5459ef422afe21be26a2e3141bedf3
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 16, 2023
1 parent 419b41f commit 681d7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest/react-native-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
};

0 comments on commit 681d7f8

Please sign in to comment.