Open graingert opened 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:
@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
@douglasduteil ping
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"
@douglasduteil: point to official es6 solution: https://github.com/istanbuljs/babel-plugin-istanbul