react-native/jest
Simen Bekkhus 0376aa4856 fix(jest-env): pass exportConditions (#35203)
Summary:
Like discussed in https://github.com/react-native-community/discussions-and-proposals/issues/509, RN should override the default `node` and `node-addons` conditions.

You might consider supporting (or just setting) [`customExportConditions`](4670d3be0d/packages/jest-environment-node/src/index.ts (L187-L189)) instead, but the default of the node env should be overwritten 🙂

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[General] [Changed] - use `'react-native'` export conditions in Jest environment

Pull Request resolved: https://github.com/facebook/react-native/pull/35203

Test Plan: Green CI?

Reviewed By: lunaleaps

Differential Revision: D41081783

Pulled By: jacdebug

fbshipit-source-id: 844c70d92a58c5432ba5b9e5e99c8f50045ef8ac
2022-11-10 06:21:53 -08:00
..
private Remove babel plugins from jest preprocessor which are part of preset 2022-05-12 03:48:24 -07:00
assetFileTransformer.js fix(jest): make assetFileTransformer return an object (#33756) 2022-06-17 10:27:47 -07:00
mockComponent.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
mockModal.js fix(jest/setup): fix circular dependencies in mockModal (#32964) 2022-01-26 23:54:55 -08:00
mockNativeComponent.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
MockNativeMethods.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
mockScrollView.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
react-native-env.js fix(jest-env): pass exportConditions (#35203) 2022-11-10 06:21:53 -08:00
renderer.js @emails -> @oncall (remaining ones) 2022-09-15 15:54:10 -07:00
setup.js fix: adjust clipboard mock (#34672) 2022-09-16 08:54:05 -07:00