@@ -10,11 +10,13 @@ describe("v2-to-v3", () => {
1010 . filter ( ( fileName ) => fileName . endsWith ( ".input.ts" ) )
1111 . map ( ( fileName ) => fileName . replace ( ".input.ts" , "" ) ) ;
1212
13- it . each ( testFilePrefixes ) ( `transforms correctly using "%s" data` , ( testFilePrefix ) => {
14- const path = join ( fixtureDir , testFilePrefix + `.input.ts` ) ;
15- const source = readFileSync ( path , "utf8" ) ;
16- const input = { path, source } ;
17- const expectedOutput = readFileSync ( join ( fixtureDir , testFilePrefix + `.output.ts` ) , "utf8" ) ;
18- runInlineTest ( transformer , null , input , expectedOutput ) ;
13+ describe . each ( [ { } , { parser : "ts" } ] ) ( "testOptions: %o" , ( testOptions ) => {
14+ it . each ( testFilePrefixes ) ( `transforms correctly using "%s" data` , ( testFilePrefix ) => {
15+ const path = join ( fixtureDir , testFilePrefix + `.input.ts` ) ;
16+ const source = readFileSync ( path , "utf8" ) ;
17+ const input = { path, source } ;
18+ const expectedOutput = readFileSync ( join ( fixtureDir , testFilePrefix + `.output.ts` ) , "utf8" ) ;
19+ runInlineTest ( transformer , null , input , expectedOutput , testOptions ) ;
20+ } ) ;
1921 } ) ;
2022} ) ;
0 commit comments