@@ -34,6 +34,7 @@ function jscodeshiftTest(options) {
34
34
. forEach ( filename => {
35
35
let extension = path . extname ( filename ) ;
36
36
let testName = filename . replace ( `.input${ extension } ` , '' ) ;
37
+ let testInputPath = path . join ( details . fixtureDir , `${ testName } ${ extension } ` ) ;
37
38
let inputPath = path . join ( details . fixtureDir , `${ testName } .input${ extension } ` ) ;
38
39
let outputPath = path . join ( details . fixtureDir , `${ testName } .output${ extension } ` ) ;
39
40
let optionsPath = path . join ( details . fixtureDir , `${ testName } .options.json` ) ;
@@ -52,7 +53,7 @@ function jscodeshiftTest(options) {
52
53
runInlineTest (
53
54
transform ,
54
55
{ } ,
55
- { path : inputPath , source : fs . readFileSync ( inputPath , 'utf8' ) } ,
56
+ { path : testInputPath , source : fs . readFileSync ( inputPath , 'utf8' ) } ,
56
57
fs . readFileSync ( outputPath , 'utf8' )
57
58
) ;
58
59
} ) ;
@@ -61,7 +62,7 @@ function jscodeshiftTest(options) {
61
62
runInlineTest (
62
63
transform ,
63
64
{ } ,
64
- { path : inputPath , source : fs . readFileSync ( outputPath , 'utf8' ) } ,
65
+ { path : testInputPath , source : fs . readFileSync ( outputPath , 'utf8' ) } ,
65
66
fs . readFileSync ( outputPath , 'utf8' )
66
67
) ;
67
68
} ) ;
0 commit comments