@@ -95,26 +95,29 @@ test<FixtureTestContext>('Test that the simple next app is working', async (ctx)
9595 await runPlugin ( ctx )
9696 // check if the blob entries where successful set on the build plugin
9797 const blobEntries = await getBlobEntries ( ctx )
98- expect ( blobEntries . map ( ( { key } ) => decodeBlobKey ( key ) ) . sort ( ) ) . toEqual ( [
99- '/404' ,
100- '/api/cached-permanent' ,
101- '/api/cached-revalidate' ,
102- '/config-redirect' ,
103- '/config-redirect/dest' ,
104- '/config-rewrite' ,
105- '/config-rewrite/dest' ,
106- '/image/local' ,
107- '/image/migration-from-v4-runtime' ,
108- '/image/remote-domain' ,
109- '/image/remote-pattern-1' ,
110- '/image/remote-pattern-2' ,
111- '/index' ,
112- '/other' ,
113- '/route-resolves-to-not-found' ,
114- '404.html' ,
115- '500.html' ,
116- 'fully-static.html' ,
117- ] )
98+ expect ( blobEntries . map ( ( { key } ) => decodeBlobKey ( key ) ) . sort ( ) ) . toEqual (
99+ [
100+ '/404' ,
101+ nextVersionSatisfies ( '>=15.4.2-canary.33' ) ? '/_not-found' : undefined ,
102+ '/api/cached-permanent' ,
103+ '/api/cached-revalidate' ,
104+ '/config-redirect' ,
105+ '/config-redirect/dest' ,
106+ '/config-rewrite' ,
107+ '/config-rewrite/dest' ,
108+ '/image/local' ,
109+ '/image/migration-from-v4-runtime' ,
110+ '/image/remote-domain' ,
111+ '/image/remote-pattern-1' ,
112+ '/image/remote-pattern-2' ,
113+ '/index' ,
114+ '/other' ,
115+ '/route-resolves-to-not-found' ,
116+ '404.html' ,
117+ '500.html' ,
118+ 'fully-static.html' ,
119+ ] . filter ( Boolean ) ,
120+ )
118121
119122 // test the function call
120123 const home = await invokeFunction ( ctx )
@@ -385,12 +388,15 @@ test.skipIf(process.env.NEXT_VERSION !== 'canary')<FixtureTestContext>(
385388 await runPlugin ( ctx )
386389 // check if the blob entries where successful set on the build plugin
387390 const blobEntries = await getBlobEntries ( ctx )
388- expect ( blobEntries . map ( ( { key } ) => decodeBlobKey ( key ) ) . sort ( ) ) . toEqual ( [
389- '/404' ,
390- '/index' ,
391- '404.html' ,
392- '500.html' ,
393- ] )
391+ expect ( blobEntries . map ( ( { key } ) => decodeBlobKey ( key ) ) . sort ( ) ) . toEqual (
392+ [
393+ '/404' ,
394+ nextVersionSatisfies ( '>=15.4.2-canary.33' ) ? '/_not-found' : undefined ,
395+ '/index' ,
396+ '404.html' ,
397+ '500.html' ,
398+ ] . filter ( Boolean ) ,
399+ )
394400
395401 // test the function call
396402 const home = await invokeFunction ( ctx )
0 commit comments