parent
2bbeab878c
commit
01826678fc
1 changed files with 10 additions and 7 deletions
|
@ -93,13 +93,16 @@ describe('Auto Export', () => {
|
|||
it('should include error link when hydration error does occur', async () => {
|
||||
const browser = await webdriver(appPort, '/post-1/hydrate-error')
|
||||
const logs = await browser.log()
|
||||
expect(
|
||||
logs.some((log) =>
|
||||
log.message.includes(
|
||||
'See more info here: https://nextjs.org/docs/messages/react-hydration-error'
|
||||
)
|
||||
)
|
||||
).toBe(true)
|
||||
expect(logs).toEqual(
|
||||
expect.arrayContaining([
|
||||
{
|
||||
message: expect.stringContaining(
|
||||
'See more info here: https://nextjs.org/docs/messages/react-hydration-error'
|
||||
),
|
||||
source: 'error',
|
||||
},
|
||||
])
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue