-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"compilers" does not compile fork scripts #2519
Comments
(
three potential workarounds off the top of my head:
related: #2517 |
Thanks @boneskull. From all your suggestions the only one I had not tried before was So running PS: Once you run the mocha with |
as I understand |
Running a project that depend on some features not available in the latest Node js yet such as
async await
I use--compilers js:babel-register
on mocha to compile my code during the tests. This works really well in most cases. But this does not work if I have a fork process which also useasync
.If I run
babel-node
over the main script it will by default compile the fork scripts as well.But running mocha with
--compilers js:babel-register
it does not happen. I was expecting it would work the same waybabel-node
does.Here is the a project to help reproduce the problem: https://github.com/maxcnunes/problem-fork-with-babel-node
The text was updated successfully, but these errors were encountered: