jamesplease / testing-with-babel

[Don't reference this]: Examples of using Babel with popular testing tools
MIT License
48 stars 4 forks source link

nyc examples #14

Open xjamundx opened 8 years ago

xjamundx commented 8 years ago

I've recently had great success with https://github.com/bcoe/nyc and wanted to know if you could add an example using that for coverage. If it helps I can probably provide the example myself, though may need a few weeks.

You literally just need to run something like this:

nyc --require babel-register --require babel-polyfill mocha

It doesn't need _mocha or anything like that. Works great!

jamesplease commented 8 years ago

Thanks for the suggestion, @xjamundx ! This tool looks awesome; I hadn't heard of it before. If you could add an example, then that would be awesome.

xjamundx commented 8 years ago

Sure!