@@ -25,7 +25,9 @@ test.describe('App scaffold', () => {
2525 packageManager : 'npm' ,
2626 orgId : env . orgId ,
2727 } )
28- expect ( initResult . exitCode ) . toBe ( 0 )
28+ expect ( initResult . exitCode , `createApp failed:\nstdout: ${ initResult . stdout } \nstderr: ${ initResult . stderr } ` ) . toBe (
29+ 0 ,
30+ )
2931 const initOutput = initResult . stdout + initResult . stderr
3032 expect ( initOutput ) . toContain ( 'is ready for you to build!' )
3133 const appDir = initResult . appDir
@@ -37,7 +39,10 @@ test.describe('App scaffold', () => {
3739
3840 // Step 3: Build the app
3941 const buildResult = await buildApp ( { cli, appDir} )
40- expect ( buildResult . exitCode , `build failed:\nstderr: ${ buildResult . stderr } ` ) . toBe ( 0 )
42+ expect (
43+ buildResult . exitCode ,
44+ `buildApp failed:\nstdout: ${ buildResult . stdout } \nstderr: ${ buildResult . stderr } ` ,
45+ ) . toBe ( 0 )
4146 } finally {
4247 fs . rmSync ( parentDir , { recursive : true , force : true } )
4348 await teardownApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
@@ -60,7 +65,9 @@ test.describe('App scaffold', () => {
6065 packageManager : 'npm' ,
6166 orgId : env . orgId ,
6267 } )
63- expect ( initResult . exitCode ) . toBe ( 0 )
68+ expect ( initResult . exitCode , `createApp failed:\nstdout: ${ initResult . stdout } \nstderr: ${ initResult . stderr } ` ) . toBe (
69+ 0 ,
70+ )
6471 expect ( fs . existsSync ( initResult . appDir ) ) . toBe ( true )
6572 expect ( fs . existsSync ( path . join ( initResult . appDir , 'shopify.app.toml' ) ) ) . toBe ( true )
6673 } finally {
@@ -89,7 +96,9 @@ test.describe('App scaffold', () => {
8996 packageManager : 'npm' ,
9097 orgId : env . orgId ,
9198 } )
92- expect ( initResult . exitCode ) . toBe ( 0 )
99+ expect ( initResult . exitCode , `createApp failed:\nstdout: ${ initResult . stdout } \nstderr: ${ initResult . stderr } ` ) . toBe (
100+ 0 ,
101+ )
93102 const appDir = initResult . appDir
94103
95104 const extensionConfigs = [
@@ -100,11 +109,17 @@ test.describe('App scaffold', () => {
100109 for ( const ext of extensionConfigs ) {
101110 // eslint-disable-next-line no-await-in-loop
102111 const result = await generateExtension ( { cli, appDir, ...ext } )
103- expect ( result . exitCode , `generate "${ ext . name } " failed:\nstderr: ${ result . stderr } ` ) . toBe ( 0 )
112+ expect (
113+ result . exitCode ,
114+ `generateExtension "${ ext . name } " failed:\nstdout: ${ result . stdout } \nstderr: ${ result . stderr } ` ,
115+ ) . toBe ( 0 )
104116 }
105117
106118 const buildResult = await buildApp ( { cli, appDir} )
107- expect ( buildResult . exitCode , `build failed:\nstderr: ${ buildResult . stderr } ` ) . toBe ( 0 )
119+ expect (
120+ buildResult . exitCode ,
121+ `buildApp failed:\nstdout: ${ buildResult . stdout } \nstderr: ${ buildResult . stderr } ` ,
122+ ) . toBe ( 0 )
108123 } finally {
109124 fs . rmSync ( parentDir , { recursive : true , force : true } )
110125 await teardownApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
0 commit comments