simonihmig / ember-native-dom-helpers-codemod

Codemod to transform your jQuery based ember tests to use ember-native-dom-helpers
MIT License
27 stars 9 forks source link

Supporting glob filepaths #44

Closed nlfurniss closed 3 years ago

nlfurniss commented 6 years ago

Currently following the readme's instructions, providing globs doesn't work.

Doesn't work ember-native-dom-helpers-codemod --type=acceptance path/to/files/upoad-*

Does work jscodeshift path/to/files/upload-* -t /usr/local/lib/node_modules/ember-native-dom-helpers-codemod/index.js --type=acceptance

So I'm either doing it wrong, or the order of the args needs to change in ember-native-dom-helpers-codemod.js. Let me know, will be happy to open a PR

simonihmig commented 6 years ago

So I'm either doing it wrong, or the order of the args needs to change in ember-native-dom-helpers-codemod.js. Let me know, will be happy to open a PR

Not sure, maybe you are right! Feel free to try it out, a PR would certainly by highly appreciated!