Unverified Commit 7adb273b authored by JJ Kasper's avatar JJ Kasper Committed by GitHub
parent 679d864c
...@@ -27,6 +27,7 @@ createNextDescribe( ...@@ -27,6 +27,7 @@ createNextDescribe(
if (isNextDev) { if (isNextDev) {
it('should have correct client references keys in manifest', async () => { it('should have correct client references keys in manifest', async () => {
await next.render('/') await next.render('/')
await check(async () => {
// Check that the client-side manifest is correct before any requests // Check that the client-side manifest is correct before any requests
const clientReferenceManifest = JSON.parse( const clientReferenceManifest = JSON.parse(
await next.readFile('.next/server/client-reference-manifest.json') await next.readFile('.next/server/client-reference-manifest.json')
...@@ -38,6 +39,9 @@ createNextDescribe( ...@@ -38,6 +39,9 @@ createNextDescribe(
const [, key] = name.split('#') const [, key] = name.split('#')
return key === undefined || key === '' || key === 'default' return key === undefined || key === '' || key === 'default'
}) })
return 'success'
}, 'success')
}) })
} }
......
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