react/scripts/jest/config.source-xplat.js
Ricky eabb681535
Add xplat test variants (#29734)
## Overview

We didn't have any tests that ran in persistent mode with the xplat
feature flags (for either variant).

As a result, invalid test gating like in
https://github.com/facebook/react/pull/29664 were not caught.

This PR adds test flavors for `ReactFeatureFlag-native-fb.js` in both
variants.
2024-06-04 13:07:29 -04:00

31 lines
897 B
JavaScript

'use strict';
const baseConfig = require('./config.base');
module.exports = Object.assign({}, baseConfig, {
modulePathIgnorePatterns: [
...baseConfig.modulePathIgnorePatterns,
'packages/react-devtools-extensions',
'packages/react-devtools-shared',
'ReactIncrementalPerf',
'ReactIncrementalUpdatesMinimalism',
'ReactIncrementalTriangle',
'ReactIncrementalReflection',
'forwardRef',
],
// RN configs should not run react-dom tests.
// There are many other tests that use react-dom
// and for those we will use the www entrypoint,
// but those tests should be migrated to Noop renderer.
testPathIgnorePatterns: [
'node_modules',
'packages/react-dom',
'packages/react-server-dom-webpack',
],
setupFiles: [
...baseConfig.setupFiles,
require.resolve('./setupTests.xplat.js'),
require.resolve('./setupHostConfigs.js'),
],
});