Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
react 18
  • Loading branch information
SimenB committed Apr 25, 2022
commit 20f8d51f005bd03f2b117622e7593f23afa8937b
12 changes: 6 additions & 6 deletions packages/react/__tests__/rehydration.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ test('duplicated global styles can be removed safely after rehydrating HTML SSRe
container: safeQuerySelector('#root')
})

expect((console.error: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.error: any).mock.calls).toMatchInlineSnapshot(`[]`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`[]`)
})

test('no hydration mismatch for css prop when using useId', async () => {
Expand Down Expand Up @@ -681,8 +681,8 @@ test('duplicated global styles can be removed safely after rehydrating HTML SSRe
}
)

expect((console.error: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.error: any).mock.calls).toMatchInlineSnapshot(`[]`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`[]`)
})

test('no hydration mismatch for ClassNames when using useId', async () => {
Expand Down Expand Up @@ -736,7 +736,7 @@ test('duplicated global styles can be removed safely after rehydrating HTML SSRe
}
)

expect((console.error: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`Array []`)
expect((console.error: any).mock.calls).toMatchInlineSnapshot(`[]`)
expect((console.warn: any).mock.calls).toMatchInlineSnapshot(`[]`)
})
})