Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix React 18 ssr test
Browse files Browse the repository at this point in the history
aryaemami59 committed May 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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

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')

0 comments on commit b7877bc

Please sign in to comment.