Closed domenic closed 5 years ago
That's annoying. I'm surprised there is no way to configure defaults for the test runner like there is for the command-line argument.
Let's not copy the code for now; instead let's open an issue on jscodeshift, asking them if they'd accept a pull request to configure it, and wait to see what they say.
Opened: https://github.com/facebook/jscodeshift/issues/336 to address this
This can be solved as part of #30.
Looks like jscodemod automatically adds the
.input.js
and.output.js
to the test files in theirrunTest
helper.What I could do is copy over their testUtils.js file and modify it to support both
.js
and.mjs