Use babel-preset-env for node in tests
Closed this issue · 4 comments
thibmaek commented
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:
thibmaek commented
@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
sophiekoonin commented
@thibmaek so there is... my ls
didn't pick it up!
thibmaek commented
Prob need to do ls -a
to be able to see a dotfile ;)
sophiekoonin commented
Yep... figured that out. Too hungry to concentrate :)