Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters