nit: a quick copy edit for an act() message/comment (#15805)
Sunil Pai committed
Jun 4, 2019 at 16:36 UTC
d707a757942e9d5a3a4091c894ebf8d416229012
1 file changed
+1
-4
packages/react-reconciler/src/ReactFiberWorkLoop.js
+1
-4
@@ -2388,17 +2388,14 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void {
2388
if (__DEV__) {
2389
if (
2390
ReactCurrentActingRendererSigil.current !== null &&
2391
- // use the function flushPassiveEffects directly as the sigil
2392
- // so this comparison is expected here
2391
ReactCurrentActingRendererSigil.current !== ReactActingRendererSigil
2392
) {
2395
- // it looks like we're using the wrong matching act(), so log a warning
2393
warningWithoutStack(
2394
false,
2395
"It looks like you're using the wrong act() around your test interactions.\n" +
2396
'Be sure to use the matching version of act() corresponding to your renderer:\n\n' +
2397
'// for react-dom:\n' +
2401
- "import {act} from 'react-test-utils';\n" +
2398
+ "import {act} from 'react-dom/test-utils';\n" +
2399
'//...\n' +
2400
'act(() => ...);\n\n' +
2401
'// for react-test-renderer:\n' +