Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use babel-preset-env for node in tests #11

Closed
thibmaek opened this issue Oct 11, 2017 · 4 comments
Closed

Use babel-preset-env for node in tests #11

thibmaek opened this issue Oct 11, 2017 · 4 comments

Comments

@thibmaek
Copy link
Owner

thibmaek commented Oct 11, 2017

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
Copy link
Owner Author

@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
Copy link
Contributor

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

@thibmaek
Copy link
Owner Author

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

@sophiekoonin
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants