This repository was archived by the owner on Dec 5, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +1512
-169
lines changed Expand file tree Collapse file tree 4 files changed +1512
-169
lines changed Original file line number Diff line number Diff line change @@ -557,9 +557,7 @@ To build/test the project locally on your computer:
557
557
` npm run build `
558
558
559
559
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 `
563
561
564
562
565
563
License
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function exitIfDisabled () {
48
48
* Configures the code-coverage reporter
49
49
*/
50
50
function configureCodeCoverage ( config ) {
51
- if ( process . argv . indexOf ( '--cover ' ) === - 1 ) {
51
+ if ( process . argv . indexOf ( '--coverage ' ) === - 1 ) {
52
52
console . warn ( 'Code-coverage is not enabled' ) ;
53
53
return ;
54
54
}
@@ -63,7 +63,7 @@ function configureCodeCoverage (config) {
63
63
64
64
config . files = config . files . map ( function ( file ) {
65
65
if ( typeof file === 'string' ) {
66
- file = file . replace ( / ^ d i s t \/ ( .* ?) ( \. m i n ) ? \. j s $ / , 'dist/$1.test .js' ) ;
66
+ file = file . replace ( / ^ d i s t \/ ( .* ?) ( \. m i n ) ? \. j s $ / , 'dist/$1.coverage .js' ) ;
67
67
}
68
68
return file ;
69
69
} ) ;
You can’t perform that action at this time.
0 commit comments