@@ -24,6 +24,9 @@ describe("Integration Test for tsgen command", () => {
24
24
const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
25
25
26
26
expect ( result . status ) . toBe ( 0 ) ; // Command should exit successfully
27
+ console . log ( "FullOutputPath" , outputFilePath ) ;
28
+ console . log ( "Directory" , __dirname ) ;
29
+ console . log ( "Directory" , process . cwd ( ) ) ;
27
30
expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
28
31
29
32
const generatedContent = fs . readFileSync ( outputFilePath , "utf8" ) ;
@@ -45,6 +48,9 @@ describe("Integration Test for tsgen command", () => {
45
48
prefix ,
46
49
] ;
47
50
51
+ console . log ( "FullOutputPath" , outputFilePath ) ;
52
+ console . log ( "Directory" , __dirname ) ;
53
+ console . log ( "Directory" , process . cwd ( ) ) ;
48
54
const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
49
55
50
56
expect ( result . status ) . toBe ( 0 ) ;
@@ -70,7 +76,7 @@ describe("Integration Test for tsgen command", () => {
70
76
const args = [ "tsgen" , "-a" , tokenAlias , "-o" , outputFilePath , "--no-doc" ] ;
71
77
72
78
const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
73
-
79
+
74
80
expect ( result . status ) . toBe ( 0 ) ;
75
81
expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
76
82
@@ -94,7 +100,7 @@ describe("Integration Test for tsgen command", () => {
94
100
95
101
expect ( result . status ) . toBe ( 0 ) ;
96
102
expect ( fs . existsSync ( outputFilePath ) ) . toBeTruthy ( ) ;
97
-
103
+
98
104
const generatedContent = fs . readFileSync ( outputFilePath , "utf8" ) ;
99
105
expect ( generatedContent ) . toContain ( "export interface SystemFields" ) ;
100
106
expect ( generatedContent ) . toContain ( "extends SystemFields" ) ;
0 commit comments