@@ -42,7 +42,7 @@ describe('production - app dir - build output', () => {
4242
4343 it ( 'should log errors not caught by the worker without terminating the process' , async ( ) => {
4444 expect ( output ) . toContain ( 'Error: Boom' )
45- expect ( output ) . not . toContain ( 'Static worker exited with code: 78' )
45+ expect ( output ) . not . toContain ( 'Next.js build worker exited with code: 78' )
4646
4747 const $ = await next . render$ ( '/uncaught-error' )
4848 expect ( $ ( '#sentinel' ) . text ( ) ) . toEqual ( 'at buildtime' )
@@ -66,7 +66,7 @@ describe('production - app dir - build output', () => {
6666 const { cliOutput } = await next . build ( )
6767 await next . deleteFile ( 'app/out-of-band-dynamic-api/page.tsx' )
6868
69- expect ( cliOutput ) . toContain ( 'Static worker exited with code: 78' )
69+ expect ( cliOutput ) . toContain ( 'Next.js build worker exited with code: 78' )
7070 } )
7171
7272 it ( 'should fail the build if you use a dynamic API outside of a render context - headers' , async ( ) => {
@@ -87,7 +87,7 @@ describe('production - app dir - build output', () => {
8787 const { cliOutput } = await next . build ( )
8888 await next . deleteFile ( 'app/out-of-band-dynamic-api/page.tsx' )
8989
90- expect ( cliOutput ) . toContain ( 'Static worker exited with code: 78' )
90+ expect ( cliOutput ) . toContain ( 'Next.js build worker exited with code: 78' )
9191 } )
9292
9393 it ( 'should fail the build if you use a dynamic API outside of a render context - searchParams' , async ( ) => {
@@ -106,7 +106,7 @@ describe('production - app dir - build output', () => {
106106 const { cliOutput } = await next . build ( )
107107 await next . deleteFile ( 'app/out-of-band-dynamic-api/page.tsx' )
108108
109- expect ( cliOutput ) . toContain ( 'Static worker exited with code: 78' )
109+ expect ( cliOutput ) . toContain ( 'Next.js build worker exited with code: 78' )
110110 } )
111111
112112 it ( 'should fail the build if you use a dynamic API outside of a render context - redirect' , async ( ) => {
@@ -127,7 +127,7 @@ describe('production - app dir - build output', () => {
127127 const { cliOutput } = await next . build ( )
128128 await next . deleteFile ( 'app/out-of-band-dynamic-api/page.tsx' )
129129
130- expect ( cliOutput ) . toContain ( 'Static worker exited with code: 78' )
130+ expect ( cliOutput ) . toContain ( 'Next.js build worker exited with code: 78' )
131131 } )
132132
133133 it ( 'should fail the build if you use a dynamic API outside of a render context - notFound' , async ( ) => {
@@ -148,6 +148,6 @@ describe('production - app dir - build output', () => {
148148 const { cliOutput } = await next . build ( )
149149 await next . deleteFile ( 'app/out-of-band-dynamic-api/page.tsx' )
150150
151- expect ( cliOutput ) . toContain ( 'Static worker exited with code: 78' )
151+ expect ( cliOutput ) . toContain ( 'Next.js build worker exited with code: 78' )
152152 } )
153153} )
0 commit comments