mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
## 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.
31 lines
897 B
JavaScript
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'),
|
|
],
|
|
});
|