From 49d73be4f9f80652aabd1742df95bb72e3780ef2 Mon Sep 17 00:00:00 2001 From: Sunil Pai Date: Mon, 3 Jun 2019 06:03:50 -0700 Subject: [PATCH] a quick copy edit for an act() message/comment --- 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 d427c4405688..28ffb780b763 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' +