Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nyc to track test coverage #33

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ pids
*.pid
*.seed
*.pid.lock

# Test coverage
.nyc_output
packages/*/coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"mocha": "^9.1.3",
"prettier": "^2.5.1",
"typescript": "^4.5.2",
"wsrun": "^5.2.4"
"wsrun": "^5.2.4",
"nyc": "^15.1.0"
}
}
1 change: 1 addition & 0 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"typecheck": "tsc --noEmit",
"build": "tsc",
"test": "mocha",
"coverage": "nyc --reporter=lcov --reporter=text mocha",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we might want to add such scripts to all packages and have a repository level script too.

"start": "node -r source-map-support/register build/src",
"dev": "node -r esbuild-register src"
},
Expand Down
Loading