Skip to content

Commit

Permalink
feat: coverage support
Browse files Browse the repository at this point in the history
  • Loading branch information
roman.vasilev committed Aug 30, 2018
1 parent f36dfff commit 3879363
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"main": "dist/index.js",
"typings": "src/index.ts",
"scripts": {
"test": "npm run eslint && npm run tscheck && npm run test:r",
"test:r": "npm run mocha -- src/*.spec.ts",
"mocha": "node -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha",
"test:w": "npm run mocha -- --watch-extensions ts --watch src/**/*.spec.ts",
"test": "npm run eslint && npm run tscheck && npm run test:cov",
"_mocha": "node -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha",
"test:r": "mocha -r ts-node/register/transpile-only src/*.spec.ts",
"test:w": "mocha -r ts-node/register/transpile-only --watch-extensions ts --watch src/**/*.spec.ts",
"test:cov": "nyc mocha src/**/*.spec.ts",
"test:d": "node --inspect-brk -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha --no-timeouts --watch-extensions ts --watch src/**/*.spec.ts",
"tscheck": "echo tscheck... && tsc --noEmit",
"tscheck:w": "npm run tscheck -- --watch",
Expand Down Expand Up @@ -41,6 +42,7 @@
"eslint-plugin-unicorn": "^6.0.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.3",
"nyc": "^13.0.1",
"rimraf": "^2.6.2",
"semantic-release": "^15.9.11",
"ts-node": "^7.0.1",
Expand All @@ -60,6 +62,28 @@
"url": "https://github.com/unlight/node-package-starter.git"
},
"keywords": [],
"nyc": {
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"**/*.d.ts",
"src/**/*.spec.ts"
],
"extension": [
".ts",
".tsx"
],
"require": [
"ts-node/register/transpile-only"
],
"reporter": [
"text"
],
"sourceMap": true,
"instrument": true
},
"release": {
"generateNotes": {
"writerOpts": {
Expand Down

0 comments on commit 3879363

Please sign in to comment.