Please sign in to comment.
chore(*): add test-coverage on es6 source code
Since es6+ and JSX are transpiled, regular code coverage reports would be done on transpiled code. The previous way to to test coverage on original es6 source code was through isparta (which has been flagged as "No maintenance intended" by its maintainer). The best way now is to use babel-plugin-__coverage__ (directly a babel loader): https://github.com/dtinth/babel-plugin-__coverage__ The combo is: * babel-plugin-__coverage__ to instrument the es6 code while transpilation and add meta data that will be used by karma-coverage https://github.com/dtinth/babel-plugin-__coverage__ * karma-coverage to process this meta data and make reports (in html or for tools like jenkins, coveralls ...) https://github.com/karma-runner/karma-coverage Special thanks to @douglasduteil for https://github.com/douglasduteil/isparta which has been helpful.
- Loading branch information
Showing with 34 additions and 4 deletions.