Skip to content

Commit

Permalink
[TEST] Add coverage report after running tests (typescript-eslint#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 authored and JamesHenry committed Jan 18, 2019
1 parent 32753d1 commit 3890599
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 28 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-typescript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ versions.json
.cache
/packages/**/node_modules
.sublimelinterrc
yarn.lock
.nyc_output
/.vscode/*
!/.vscode/settings.json
!/.vscode/extensions.json
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin-typescript/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
lib/configs/recommended.json
.vscode
.nyc_output
9 changes: 8 additions & 1 deletion packages/eslint-plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"format-no-write": "prettier-eslint lib/**/*.js tests/**/*.js tools/**/*.js --eslint-config-path=.eslintrc --eslint-ignore --prettier-ignore --eslint-path=node_modules/eslint --config=.prettierrc",
"format": "yarn format-no-write --write && yarn prettier --write",
"format-check": "yarn format-no-write --list-different && yarn prettier --list-different",
"test": "mocha tests --recursive --reporter=dot",
"test": "nyc mocha tests --recursive --reporter=dot",
"test:coverage": "nyc check-coverage --lines 95 --per-file",
"recommended:update": "node tools/update-recommended.js",
"pre-commit": "yarn check --verify-tree && yarn lint && yarn format-check && yarn test && yarn docs:check"
},
Expand All @@ -31,6 +32,7 @@
},
"devDependencies": {
"eslint": "^5.9.0",
"nyc": "^13.1.0",
"eslint-config-eslint": "^5.0.1",
"eslint-config-prettier": "^3.3.0",
"eslint-docs": "^0.2.6",
Expand All @@ -46,6 +48,11 @@
"peerDependencies": {
"eslint": ">=4.13.1 < 6"
},
"nyc": {
"include": [
"lib"
]
},
"lint-staged": {
"*.js": [
"yarn format",
Expand Down

0 comments on commit 3890599

Please sign in to comment.