Skip to content

Commit 104d3af

Browse files
authored
Merge pull request #54 from alexkreidler/master
Add basic coverage information
2 parents 53edabb + 56fc6ad commit 104d3af

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
lib/
22
node_modules/
3+
4+
.nyc_output/
5+
coverage/
6+
yarn.lock

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/mocha": "^7.0.1",
1919
"@types/node": "^10.12.21",
2020
"mocha": "^7.0.1",
21+
"nyc": "^15.0.1",
2122
"rimraf": "^3.0.2",
2223
"tslint": "^6.0.0",
2324
"typescript": "^3.8.2"
@@ -37,10 +38,13 @@
3738
"clean": "rimraf lib",
3839
"remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js",
3940
"watch": "tsc -w -p ./src",
40-
"test": "npm run compile && mocha && npm run lint",
41+
"pretest": "npm run compile",
42+
"test": "mocha",
43+
"posttest": "npm run lint",
44+
"coverage": "nyc -r lcov npm run test",
4145
"lint": "tslint src/**/*.ts",
4246
"install-types-next": "npm install vscode-languageserver-types@next -f -S && npm install vscode-languageserver-textdocument@next -f -S",
4347
"preversion": "npm test",
4448
"postversion": "git push && git push --tags"
4549
}
46-
}
50+
}

0 commit comments

Comments
 (0)