Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Tweak nyc setup.
Browse files Browse the repository at this point in the history
* Add `.nycrc.json` to configure includes/excludes
* Add `text` and `lcov` reporter to `test:cover` `package.json` script
* Ensure `yarn test:cover` evaluates all files (passing `--all` flag to
  `nyc`)
  • Loading branch information
rwjblue committed Mar 15, 2020
1 parent af7c154 commit cc8d4aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": [
"bin/**/*.js",
"lib/**/*.js",
"blueprints/**/*.js"
],

"exclude": [
"blueprints/*/files/**"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prepack": "yarn docs",
"test": "node --unhandled-rejections=strict tests/runner",
"test:all": "node --unhandled-rejections=strict tests/runner all",
"test:cover": "nyc node tests/runner all",
"test:cover": "nyc --all --reporter=text --reporter=lcov node tests/runner all",
"test:slow": "node --unhandled-rejections=strict tests/runner slow",
"test:debug": "node --unhandled-rejections=strict debug tests/runner"
},
Expand Down

0 comments on commit cc8d4aa

Please sign in to comment.