Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Problems with Mocha #93

Open
denysdovhan opened this issue Nov 20, 2015 · 4 comments
Open

Problems with Mocha #93

denysdovhan opened this issue Nov 20, 2015 · 4 comments

Comments

@denysdovhan
Copy link

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.

@iamstarkov
Copy link

this is working

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

@jescalan
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...

@jamesplease
Copy link

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.

@jescalan
Copy link

jescalan commented Jan 5, 2016

Awesome, thanks @jmeas! This is the project I'm working with: https://github.com/jenius/stockfighter-node

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

No branches or pull requests

4 participants