diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js index 140ea56e04202..5f661bb4089f8 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -3310,7 +3310,7 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void { '// for react-test-renderer:\n' + // Break up imports to avoid accidentally parsing them as dependencies. 'import TestRenderer fr' + - "om react-test-renderer';\n" + + "om 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);', diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index 02cfdce20af4b..c42623203d83e 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -3294,7 +3294,7 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void { '// for react-test-renderer:\n' + // Break up imports to avoid accidentally parsing them as dependencies. 'import TestRenderer fr' + - "om react-test-renderer';\n" + + "om 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);',