Skip to content

Commit

Permalink
configure nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 25, 2019
1 parent d58d7d2 commit 33ff0c6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"check-coverage": true,
"per-file": true,
"lines": 63,
"statements": 40,
"functions": 15,
"branches": 50,
"include": [
"src/**/*.ts",
"src/index.ts"
],
"exclude": [
"test/*"
],
"ignore-class-method": "methodToIgnore",
"reporter": [
"lcov",
"text",
"html"
],
"all": true,
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts"
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "dist/index.js",
"scripts": {
"compile": "rm -rf dist/ && tsc",
"test": "NODE_ENV=test nyc --reporter=text --reporter=lcov mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts --exit",
"coveralls": "cat ./coverage/lcov.info | coveralls -v"
"test": "nyc mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts",
"coveralls": "cat coverage/lcov.info | coveralls -v"
},
"keywords": [],
"author": "Carmine DiMascio <cdimascio@gmail.com>",
Expand Down

0 comments on commit 33ff0c6

Please sign in to comment.