Unable to run istanbul/mocha on code containing ES6 destructuring assignment
Closed this issue · 3 comments
eugeneiiim commented
I'm trying to run mocha/istanbul on code containing ES6 destructuring assignment. Node's --harmony
flag does not enable destructuring assignment; it can only be enabled via --harmony_destructuring
.
pocesar commented
so basically it needs a nodeOptions
to pass to the process before istanbul and mocha, correct?
eugeneiiim commented
Yep, I started working on that here: https://github.com/blendlabs/grunt-mocha-istanbul/commits/em/nodeOptions
pocesar commented
implemented in 5.0.0, you can use babel with their plugins as well