Unverified Commit 2248cfc0 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: re-enabled the disabled manifest test (#55810)

Re-enable the disabled test 
parent 19f2fe45
...@@ -31,20 +31,17 @@ createNextDescribe( ...@@ -31,20 +31,17 @@ createNextDescribe(
}, },
({ next, isNextDev, isNextStart, isTurbopack }) => { ({ next, isNextDev, isNextStart, isTurbopack }) => {
if (isNextDev && !isTurbopack) { if (isNextDev && !isTurbopack) {
// TODO: Fix this test, it no longer uses stringified JSON. it('should have correct client references keys in manifest', async () => {
it.skip('should have correct client references keys in manifest', async () => {
await next.render('/') await next.render('/')
await check(async () => { 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(
JSON.parse(
( (
await next.readFile( await next.readFile(
'.next/server/app/page_client-reference-manifest.js' '.next/server/app/page_client-reference-manifest.js'
) )
).match(/]=(.+)$/)[1] ).match(/]=(.+)$/)[1]
) )
)
const clientModulesNames = Object.keys( const clientModulesNames = Object.keys(
clientReferenceManifest.clientModules clientReferenceManifest.clientModules
) )
......
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