@@ -41,7 +41,7 @@ To configure the test scripts provide this entry in `package.json` scripts entry
41
41
42
42
```
43
43
"devDependencies": {
44
- "typhonjs-npm-scripts-test-mocha": "^0.2 .0"
44
+ "typhonjs-npm-scripts-test-mocha": "^0.4 .0"
45
45
},
46
46
"scripts": {
47
47
"test": "babel-node ./node_modules/typhonjs-npm-scripts-test-mocha/scripts/mocha.js",
@@ -70,16 +70,20 @@ with the following options:
70
70
When running on Travis CI a ` test.travis ` hash in ` .npmscriptrc ` may be provided which overrides any
71
71
data stored in the ` test ` hash. This is useful for specifying the ` coverage ` command when running on Travis CI.
72
72
73
- A basic configuration for testing ES6 NPM modules in ` .npmscriptrc ` follows:
73
+ A basic configuration for testing ES6+ NPM modules in ` .npmscriptrc ` follows:
74
74
```
75
75
{
76
76
"test":
77
77
{
78
- // Provides a report handling command that is executed after running tests / coverage when running on Travis CI.
79
- "travis": { "report": "./node_modules/.bin/codecov" },
80
- `
81
- "istanbul": { "command": "cover", "options": [ "--report lcovonly" ] },
82
- "mocha": { "source": "./test/src", "options": [ "--compilers js:babel-register", "-t 120000 --recursive" ] }
78
+ // Provides a `coverage` handling command that is appended when running on Travis CI.
79
+ "travis":
80
+ {
81
+ "istanbul": { "command": "cover", "options": ["--report lcovonly"] },
82
+ "report": "./node_modules/.bin/codecov"
83
+ },
84
+
85
+ "istanbul": { "command": "cover", "options": ["--include-all-sources --root src"] },
86
+ "mocha": { "source": "./test/src", "options": ["--compilers js:babel-register", "-t 120000 --recursive"] }
83
87
}
84
88
}
85
89
```
0 commit comments