douglasduteil / isparta

:skull: A code coverage tool for ES6 (babel/6to5)
Do What The F*ck You Want To Public License
642 stars 47 forks source link

point to official es6 solution: babel-plugin-istanbul #121

Open graingert opened 8 years ago

graingert commented 8 years ago

@douglasduteil: point to official es6 solution: https://github.com/istanbuljs/babel-plugin-istanbul

northerncodemky commented 8 years ago

Any chance you could include some more guidance on that? The rabbit hole of combining their docs with nyc's is making me want to smash my head against the desk :tired_face:

graingert commented 8 years ago

@northerncodemky ignore the nyc docs, just follow those in https://github.com/istanbuljs/babel-plugin-istanbul

or follow the instructions here: https://github.com/dtinth/babel-plugin-__coverage__

then replace: s/babel-plugin-coverage/babel-plugin-istanbul/g and s/coverage/istanbul/g

graingert commented 8 years ago

@douglasduteil ping

msmfsd commented 8 years ago

thanks @graingert I had so many issues with getting ES6 imports to work with istanbul.. I just installed babel-plugin-istanbul + nyc + cross-env and then ran: "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha --compilers js:babel-register test/*.js"