Move enableSyncDefaultUpdates to test config (#26847)

This commit is contained in:
Ricky
2023-05-24 18:25:30 -04:00
committed by GitHub
parent 6fc3333b68
commit ee4233bdbc
2 changed files with 9 additions and 2 deletions

View File

@@ -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', () => {