mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Move enableSyncDefaultUpdates to test config (#26847)
This commit is contained in:
@@ -6,7 +6,12 @@ jest.mock('shared/ReactFeatureFlags', () => {
|
||||
() => jest.requireActual('shared/forks/ReactFeatureFlags.www-dynamic'),
|
||||
{virtual: true}
|
||||
);
|
||||
return jest.requireActual('shared/forks/ReactFeatureFlags.www');
|
||||
const actual = jest.requireActual('shared/forks/ReactFeatureFlags.www');
|
||||
|
||||
// This flag is only used by tests, it should never be set elsewhere.
|
||||
actual.enableSyncDefaultUpdates = __VARIANT__;
|
||||
|
||||
return actual;
|
||||
});
|
||||
|
||||
jest.mock('scheduler/src/SchedulerFeatureFlags', () => {
|
||||
|
||||
Reference in New Issue
Block a user