From b7877bc208d3a016d071abe8f8b936002ad9e32d Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Thu, 16 May 2024 10:02:35 -0500 Subject: [PATCH] Fix React 18 ssr test --- test/integration/ssr.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/ssr.spec.tsx b/test/integration/ssr.spec.tsx index 578417bb6..b0a924da6 100644 --- a/test/integration/ssr.spec.tsx +++ b/test/integration/ssr.spec.tsx @@ -163,7 +163,7 @@ describe('New v8 serverState behavior', () => { ) }) - expect(consoleErrorSpy).toHaveBeenCalledOnce() + expect(consoleErrorSpy).toHaveBeenCalledTimes(IS_REACT_18 ? 1 : 8) expect(consoleErrorSpy).toHaveBeenLastCalledWith('Hydration error')