Skip to content

Commit

Permalink
Fix React 18 ssr test
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed May 16, 2024
1 parent e39eb77 commit b7877bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/ssr.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('New v8 serverState behavior', () => {
)
})

expect(consoleErrorSpy).toHaveBeenCalledOnce()
expect(consoleErrorSpy).toHaveBeenCalledTimes(IS_REACT_18 ? 1 : 8)

Check failure on line 166 in test/integration/ssr.spec.tsx

View workflow job for this annotation

GitHub Actions / Build and run test Suite

test/integration/ssr.spec.tsx > New v8 serverState behavior > Handles hydration correctly

AssertionError: expected "error" to be called 8 times, but got 1 times ❯ test/integration/ssr.spec.tsx:166:29

expect(consoleErrorSpy).toHaveBeenLastCalledWith('Hydration error')

Expand Down

0 comments on commit b7877bc

Please sign in to comment.