@@ -34,6 +34,7 @@ function jscodeshiftTest(options) {
3434 . forEach ( filename => {
3535 let extension = path . extname ( filename ) ;
3636 let testName = filename . replace ( `.input${ extension } ` , '' ) ;
37+ let testInputPath = path . join ( details . fixtureDir , `${ testName } ${ extension } ` ) ;
3738 let inputPath = path . join ( details . fixtureDir , `${ testName } .input${ extension } ` ) ;
3839 let outputPath = path . join ( details . fixtureDir , `${ testName } .output${ extension } ` ) ;
3940 let optionsPath = path . join ( details . fixtureDir , `${ testName } .options.json` ) ;
@@ -52,7 +53,7 @@ function jscodeshiftTest(options) {
5253 runInlineTest (
5354 transform ,
5455 { } ,
55- { path : inputPath , source : fs . readFileSync ( inputPath , 'utf8' ) } ,
56+ { path : testInputPath , source : fs . readFileSync ( inputPath , 'utf8' ) } ,
5657 fs . readFileSync ( outputPath , 'utf8' )
5758 ) ;
5859 } ) ;
@@ -61,7 +62,7 @@ function jscodeshiftTest(options) {
6162 runInlineTest (
6263 transform ,
6364 { } ,
64- { path : inputPath , source : fs . readFileSync ( outputPath , 'utf8' ) } ,
65+ { path : testInputPath , source : fs . readFileSync ( outputPath , 'utf8' ) } ,
6566 fs . readFileSync ( outputPath , 'utf8' )
6667 ) ;
6768 } ) ;
0 commit comments