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

Problems with Mocha #93

denysdovhan opened this Issue Nov 20, 2015 · 4 comments


None yet
4 participants
Copy link

denysdovhan commented Nov 20, 2015

Issue for that: #81 (comment)

I have the same problem. I temporarily fixed it like this:

"scripts": {
   "coverage": "babel-node ./node_modules/.bin/isparta cover _mocha index.js -- --require babel-core/register"

But I dont think it's looks so elegant.


This comment has been minimized.

Copy link

iamstarkov commented Nov 24, 2015

this is working

"coverage": "babel-node ./node_modules/.bin/isparta cover _mocha index.js -- --compilers js:babel-core/register",

This comment has been minimized.

Copy link

jescalan commented Dec 8, 2015

I'm having some issues with mocha and es2015 as well. It only generates coverage if I include --include-all-sources as an option, but doesn't actually give full coverage, it only covers the index.js file and none of the other library files in the project.

Has anyone else seen behavior like this? Working with a bare bones project set up to only have a couple example files and a test framework, so I don't think I've got any extra complications here. If it would help I could link to the project here...


This comment has been minimized.

Copy link

jamesplease commented Dec 29, 2015

This project may help people. It's working examples of using Babel v6 with popular testing tools like Mocha.

@Jenius, link me to that project and I'll take a look.


This comment has been minimized.

Copy link

jescalan commented Jan 5, 2016

Awesome, thanks @jmeas! This is the project I'm working with:

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