Skip to content

Commit ffd2967

Browse files
authored
Update README.md
1 parent 1d4201e commit ffd2967

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To configure the test scripts provide this entry in `package.json` scripts entry
4141

4242
```
4343
"devDependencies": {
44-
"typhonjs-npm-scripts-test-mocha": "^0.2.0"
44+
"typhonjs-npm-scripts-test-mocha": "^0.4.0"
4545
},
4646
"scripts": {
4747
"test": "babel-node ./node_modules/typhonjs-npm-scripts-test-mocha/scripts/mocha.js",
@@ -70,16 +70,20 @@ with the following options:
7070
When running on Travis CI a `test.travis` hash in `.npmscriptrc` may be provided which overrides any
7171
data stored in the `test` hash. This is useful for specifying the `coverage` command when running on Travis CI.
7272

73-
A basic configuration for testing ES6 NPM modules in `.npmscriptrc` follows:
73+
A basic configuration for testing ES6+ NPM modules in `.npmscriptrc` follows:
7474
```
7575
{
7676
"test":
7777
{
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"] }
8387
}
8488
}
8589
```

0 commit comments

Comments
 (0)