Skip to content

Commit

Permalink
test: improve nyc usage by adding .nycrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JCMais committed Oct 10, 2020
1 parent 5087926 commit 0df023f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"include": [
"lib/**/*.ts"
],
"exclude": [
"**/*.d.ts"
],
"reporter": [
"html",
"text-summary",
"lcov"
],
"all": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prettier": "prettier --write",
"prettier:all": "yarn prettier lib/**/*.ts tools/**/*.js scripts/**/*.js test/**/*.ts examples/**/*.js",
"test": "mocha --require ts-node/register test/**/*.spec.ts --reporter spec --timeout 60000",
"test:coverage": "nyc --reporter=text-summary --reporter=lcov --reporter=html yarn test",
"test:coverage": "nyc yarn test",
"test:electron": "electron-mocha --require ts-node/register test/**/*.spec.ts --reporter spec --timeout 60000",
"test:watch": "yarn test --watch --watch-files lib/*.ts lib/**/*.ts test/**/*.spec.ts",
"preversion": "yarn lint && yarn clean:dist && yarn build:dist"
Expand Down

0 comments on commit 0df023f

Please sign in to comment.