thibmaek/pure-fun

Use babel-preset-env for node in tests

Closed this issue · 4 comments

https://babeljs.io/docs/plugins/preset-env/

For convenience, you can use "node": "current" to only include the necessary polyfills and transforms for the Node.js version that you use to run Babel:

@sophiekoonin There is a .babelrc in project root for having import/export available in jest (used for testing). It currently uses es-2015 & es-2017 but should thus be replaced with preset-env for node:current

@thibmaek so there is... my ls didn't pick it up!

Prob need to do ls -a to be able to see a dotfile ;)

Yep... figured that out. Too hungry to concentrate :)