Unverified Commit 01826678 authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Improve test assertions (#65285)

Closes NEXT-3286
parent 2bbeab87
...@@ -93,13 +93,16 @@ describe('Auto Export', () => { ...@@ -93,13 +93,16 @@ describe('Auto Export', () => {
it('should include error link when hydration error does occur', async () => { it('should include error link when hydration error does occur', async () => {
const browser = await webdriver(appPort, '/post-1/hydrate-error') const browser = await webdriver(appPort, '/post-1/hydrate-error')
const logs = await browser.log() const logs = await browser.log()
expect( expect(logs).toEqual(
logs.some((log) => expect.arrayContaining([
log.message.includes( {
'See more info here: https://nextjs.org/docs/messages/react-hydration-error' message: expect.stringContaining(
) 'See more info here: https://nextjs.org/docs/messages/react-hydration-error'
) ),
).toBe(true) source: 'error',
},
])
)
}) })
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment