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:
@@ -23,7 +23,6 @@ export const {
|
||||
enableDebugTracing,
|
||||
enableUseRefAccessWarning,
|
||||
enableLazyContextPropagation,
|
||||
enableSyncDefaultUpdates,
|
||||
enableUnifiedSyncLane,
|
||||
enableTransitionTracing,
|
||||
enableCustomElementPropertySupport,
|
||||
@@ -106,5 +105,8 @@ export const enableUseMutableSource = true;
|
||||
export const useModernStrictMode = false;
|
||||
export const enableFizzExternalRuntime = true;
|
||||
|
||||
// This is only used in VARIANT tests, setting it to true does nothing.
|
||||
export const enableSyncDefaultUpdates = false;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|
||||
|
||||
@@ -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