From d4f7d8cb4dba0404a2c3e2e8e07f5a198ab5008d Mon Sep 17 00:00:00 2001 From: Josh Story Date: Mon, 1 Apr 2024 14:13:24 -0700 Subject: [PATCH] Turns on disableLegacyMode for OSS --- packages/react-dom/src/__tests__/ReactTestUtils-test.js | 1 + packages/shared/forks/ReactFeatureFlags.test-renderer.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-dom/src/__tests__/ReactTestUtils-test.js b/packages/react-dom/src/__tests__/ReactTestUtils-test.js index e3ed7c71a6883..80871a12d8e52 100644 --- a/packages/react-dom/src/__tests__/ReactTestUtils-test.js +++ b/packages/react-dom/src/__tests__/ReactTestUtils-test.js @@ -586,6 +586,7 @@ describe('ReactTestUtils', () => { }); // @gate !disableDOMTestUtils + // @gate !disableLegacyMode it('should call setState callback with no arguments', async () => { let mockArgs; class Component extends React.Component { diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.js index 67ef3589ca487..dd5f9299e1536 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.js @@ -88,7 +88,7 @@ const __NEXT_MAJOR__ = __EXPERIMENTAL__; export const enableRefAsProp = __NEXT_MAJOR__; export const disableStringRefs = __NEXT_MAJOR__; export const enableBigIntSupport = __NEXT_MAJOR__; -export const disableLegacyMode = __NEXT_MAJOR__; +export const disableLegacyMode = true; export const disableLegacyContext = __NEXT_MAJOR__; export const disableDOMTestUtils = __NEXT_MAJOR__; export const enableRenderableContext = __NEXT_MAJOR__;