@@ -24,7 +24,7 @@ describe("Integration Test for tsgen command", () => {
2424 // Test case 1: Generate TypeScript types with default flags
2525 it ( "should generate TypeScript types with the default flags" , ( ) => {
2626 const cmd = "csdx" ;
27- const args = [ "tsgen" , "-a" , tokenAlias ! , "-o " , outputFilePath ] ;
27+ const args = [ "tsgen" , "-a" , tokenAlias ! , "--output " , outputFilePath ] ;
2828
2929 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
3030
@@ -44,9 +44,9 @@ describe("Integration Test for tsgen command", () => {
4444 "tsgen" ,
4545 "-a" ,
4646 tokenAlias ! ,
47- "-o " ,
47+ "--output " ,
4848 outputFilePath ,
49- "-p " ,
49+ "--prefix " ,
5050 prefix ,
5151 ] ;
5252
@@ -72,7 +72,7 @@ describe("Integration Test for tsgen command", () => {
7272 // Test case 3: Generate TypeScript types without documentation comments
7373 it ( "should generate TypeScript types without documentation" , ( ) => {
7474 const cmd = "csdx" ;
75- const args = [ "tsgen" , "-a" , tokenAlias ! , "-o " , outputFilePath , "--no-doc" ] ;
75+ const args = [ "tsgen" , "-a" , tokenAlias ! , "--output " , outputFilePath , "--no-doc" ] ;
7676
7777 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
7878
@@ -90,7 +90,7 @@ describe("Integration Test for tsgen command", () => {
9090 "tsgen" ,
9191 "-a" ,
9292 tokenAlias ! ,
93- "-o " ,
93+ "--output " ,
9494 outputFilePath ,
9595 "--include-system-fields" ,
9696 ] ;
@@ -108,7 +108,7 @@ describe("Integration Test for tsgen command", () => {
108108 // Test case 5: Handling of invalid token alias
109109 it ( "should fail with an invalid token alias" , ( ) => {
110110 const cmd = "csdx" ;
111- const args = [ "tsgen" , "-a" , "invalid_alias" , "-o " , outputFilePath ] ;
111+ const args = [ "tsgen" , "-a" , "invalid_alias" , "--output " , outputFilePath ] ;
112112
113113 const result = spawnSync ( cmd , args , { encoding : "utf-8" } ) ;
114114
@@ -124,7 +124,7 @@ describe("Integration Test for tsgen command", () => {
124124 "tsgen" ,
125125 "-a" ,
126126 tokenAlias ! ,
127- "-o " ,
127+ "--output " ,
128128 outputFilePath ,
129129 "--api-type" ,
130130 "graphql" ,
@@ -147,7 +147,7 @@ describe("Integration Test for tsgen command", () => {
147147 "tsgen" ,
148148 "-a" ,
149149 tokenAlias ! ,
150- "-o " ,
150+ "--output " ,
151151 outputFilePath ,
152152 "--api-type" ,
153153 "graphql" ,
@@ -171,7 +171,7 @@ describe("Integration Test for tsgen command", () => {
171171 "tsgen" ,
172172 "-a" ,
173173 "invalid_alias" ,
174- "-o " ,
174+ "--output " ,
175175 outputFilePath ,
176176 "--api-type" ,
177177 "graphql" ,
0 commit comments