@@ -23,16 +23,16 @@ function cli(args: string[], cwd: string): Promise<{ error: ExecException | null
23
23
24
24
const tmpDir = path . resolve ( __dirname , 'tmp' ) ;
25
25
26
- describe ( 'CLI options testing' , ( ) => {
27
- beforeAll ( async ( ) => {
28
- if ( ! fs . existsSync ( tmpDir ) ) fs . mkdirSync ( tmpDir , { recursive : true } ) ;
29
- } ) ;
26
+ beforeAll ( async ( ) => {
27
+ if ( ! fs . existsSync ( tmpDir ) ) fs . mkdirSync ( tmpDir , { recursive : true } ) ;
28
+ } ) ;
30
29
31
- afterEach ( ( ) => {
32
- del . sync ( `${ tmpDir } /*.ts` ) ;
33
- } ) ;
30
+ afterEach ( ( ) => {
31
+ del . sync ( `${ tmpDir } /*.ts` ) ;
32
+ } ) ;
34
33
35
- test ( 'generation with `config.example.js`' , async ( ) => {
34
+ describe ( 'CLI options testing' , ( ) => {
35
+ test . todo ( 'generation with `config.example.js`' , async ( ) => {
36
36
const out = await cli ( [ `./config.example.js` ] , __dirname ) ;
37
37
38
38
expect ( out ) . toEqual ( {
46
46
expect ( fs . readFileSync ( path . resolve ( tmpDir , 'example.ts' ) , 'utf-8' ) ) . toMatchSnapshot ( ) ;
47
47
} , 25_000 ) ;
48
48
49
- test ( 'paths are relative to configfile, not to cwd' , async ( ) => {
49
+ test . todo ( 'paths are relative to configfile, not to cwd' , async ( ) => {
50
50
const out = await cli ( [ `../test/config.example.js` ] , path . resolve ( __dirname , '../src' ) ) ;
51
51
52
52
expect ( out ) . toEqual ( {
72
72
expect ( fromJson ) . toEqual ( fromJs ) ;
73
73
} , 120_000 ) ;
74
74
75
- test ( 'missing parameters doesnt fail' , async ( ) => {
75
+ test . todo ( 'missing parameters doesnt fail' , async ( ) => {
76
76
const out = await cli ( [ `./config.invalid-example.json` ] , __dirname ) ;
77
77
expect ( out . stderr ) . toContain ( "Error: path parameter petId does not seem to be defined in '/pet/{petId}'!" ) ;
78
78
} , 25_000 ) ;
0 commit comments