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

Running the tests - need specific environment setup? #41

Closed snewcomer closed 6 years ago

snewcomer commented 6 years ago

Having into a problem with running the test suite. Getting the error below. Seems like it is using an older version of babel locally. Tried node 6.12, 9.4, 7.9, 8.0, etc. Is there some environment specifics I am missing that you know of?

ReferenceError: [BABEL] /Users/snewcomer/Github/ember-test-helpers-codemod/__tests__/acceptance-test.js: Unknown option: direct.presets
simonihmig commented 6 years ago

That is strange, because Babel is not used at all here!? 😳

There is no frontend code, just plain node.js!? Maybe some misconfiguration of your local system?

snewcomer commented 6 years ago

The command is simply npm test, correct? The Jest version is v22.1.4 and here is a screenshot of jscodeshift --version.

screen shot 2018-01-30 at 10 03 43 pm
simonihmig commented 6 years ago

The command is simply npm test, correct?

Yes. I use an older version. Will have to update and try myself...

snewcomer commented 6 years ago

Closing. Can run tests for this and ember-test-helpers-codemod now.