From e6f5ee40decd1928c51db07413dd95864246fef8 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Fri, 26 Jan 2024 00:30:23 -0500 Subject: [PATCH] [test] strict effect tests should fail --- .../src/__tests__/StrictEffectsMode-test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/react-reconciler/src/__tests__/StrictEffectsMode-test.js b/packages/react-reconciler/src/__tests__/StrictEffectsMode-test.js index af35defe2325c..77be5bcdce44b 100644 --- a/packages/react-reconciler/src/__tests__/StrictEffectsMode-test.js +++ b/packages/react-reconciler/src/__tests__/StrictEffectsMode-test.js @@ -81,14 +81,7 @@ describe('StrictEffectsMode', () => { }); if (supportsDoubleInvokeEffects()) { - assertLog([ - 'useLayoutEffect mount', - 'useEffect mount', - 'useLayoutEffect unmount', - 'useEffect unmount', - 'useLayoutEffect mount', - 'useEffect mount', - ]); + assertLog([]); } else { assertLog(['useLayoutEffect mount', 'useEffect mount']); }