Skip to content

Commit

Permalink
test(vercel#40388): validate the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Sep 9, 2022
1 parent 75c9a2c commit 7cf54dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/next-dynamic/test/index.test.js
Expand Up @@ -31,6 +31,12 @@ function runTests() {
// Failure case is 'Index<!-- -->3<!-- --><!-- -->'
expect(text).toBe('Index<!-- -->1<!-- -->2<!-- -->3<!-- -->4<!-- -->4')
expect(await browser.eval('window.caughtErrors')).toBe('')

// should not print "invalid-dynamic-suspense" warning in browser's console
const logs = (await browser.log()).map((log) => log.message).join('\n')
expect(logs).not.toContain(
'https://nextjs.org/docs/messages/invalid-dynamic-suspense'
)
})
}

Expand Down

0 comments on commit 7cf54dc

Please sign in to comment.