From d707a757942e9d5a3a4091c894ebf8d416229012 Mon Sep 17 00:00:00 2001 From: Sunil Pai Date: Tue, 4 Jun 2019 16:36:07 -0700 Subject: [PATCH] nit: a quick copy edit for an act() message/comment (#15805) --- packages/react-reconciler/src/ReactFiberWorkLoop.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.js b/packages/react-reconciler/src/ReactFiberWorkLoop.js index d427c44056..28ffb780b7 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.js @@ -2388,17 +2388,14 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void { if (__DEV__) { if ( ReactCurrentActingRendererSigil.current !== null && - // use the function flushPassiveEffects directly as the sigil - // so this comparison is expected here ReactCurrentActingRendererSigil.current !== ReactActingRendererSigil ) { - // it looks like we're using the wrong matching act(), so log a warning warningWithoutStack( false, "It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + - "import {act} from 'react-test-utils';\n" + + "import {act} from 'react-dom/test-utils';\n" + '//...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' +