@@ -70,7 +70,7 @@ describe("Integration Test for tsgen command", () => {
7070 const args = [ "tsgen" , "-a" , tokenAlias , "-o" , outputFilePath , "--no-doc" ] ;
7171
7272 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
73-
73+
7474 expect ( result . status ) . toBe ( 0 ) ;
7575 expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
7676
@@ -94,7 +94,7 @@ describe("Integration Test for tsgen command", () => {
9494
9595 expect ( result . status ) . toBe ( 0 ) ;
9696 expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
97-
97+
9898 const generatedContent = fs . readFileSync ( outputFilePath , "utf8" ) ;
9999 expect ( generatedContent ) . toContain ( "export interface SystemFields" ) ;
100100 expect ( generatedContent ) . toContain ( "extends SystemFields" ) ;
@@ -126,6 +126,9 @@ describe("Integration Test for tsgen command", () => {
126126
127127 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
128128
129+ if ( result . error ) {
130+ console . error ( "Spawn Error:" , result . error ) ;
131+ }
129132 expect ( result . status ) . toBe ( 0 ) ;
130133 expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
131134
@@ -152,6 +155,9 @@ describe("Integration Test for tsgen command", () => {
152155
153156 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
154157
158+ if ( result . error ) {
159+ console . error ( "Spawn Error:" , result . error ) ;
160+ }
155161 expect ( result . status ) . toBe ( 0 ) ;
156162 expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
157163
0 commit comments