Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 61ddaf7

Browse files
Switched from istanbul to nyc for code coverage
1 parent b9f454c commit 61ddaf7

File tree

4 files changed

+1512
-169
lines changed

4 files changed

+1512
-169
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,7 @@ To build/test the project locally on your computer:
557557
`npm run build`
558558

559559
4. __Run the tests__<br>
560-
`npm run mocha` (test in Node)<br>
561-
`npm run karma` (test in web browsers)<br>
562-
`npm test` (test in Node and browsers, and report code coverage)
560+
`npm test`
563561

564562

565563
License

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function exitIfDisabled () {
4848
* Configures the code-coverage reporter
4949
*/
5050
function configureCodeCoverage (config) {
51-
if (process.argv.indexOf('--cover') === -1) {
51+
if (process.argv.indexOf('--coverage') === -1) {
5252
console.warn('Code-coverage is not enabled');
5353
return;
5454
}
@@ -63,7 +63,7 @@ function configureCodeCoverage (config) {
6363

6464
config.files = config.files.map(function (file) {
6565
if (typeof file === 'string') {
66-
file = file.replace(/^dist\/(.*?)(\.min)?\.js$/, 'dist/$1.test.js');
66+
file = file.replace(/^dist\/(.*?)(\.min)?\.js$/, 'dist/$1.coverage.js');
6767
}
6868
return file;
6969
});

0 commit comments

Comments
 (0)