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

Code coverage #21

Merged
merged 8 commits into from
Mar 18, 2023
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
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@ jobs:
run: |
yarn install
yarn start &
sleep 5
sleep 10
yarn test
- name: Upload coverage reports to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v3
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
node_modules/
node_modules/
coverage/
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ jest.config.js
package.json
tsconfig.json
yarn.lock
yarn-error.log
yarn-error.log
coverage/
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"start": "tsc && node dist/index.js",
"build": "tsc",
"test": "jest src/tests",
"test": "jest src/tests --coverage --config package.json",
"lint": "eslint --ext '.js,.ts,.tsx' src/",
"pretty": "yarn prettier --write .",
"pretty-check": "yarn prettier --check .",
Expand All @@ -26,11 +26,19 @@
"eslint-plugin-promise": "^6.0.0",
"prettier": "2.8.4",
"ts-jest": "^29.0.5",
"typescript": "*",
"typescript": "4.9.5",
"husky": "^8.0.0"
},
"dependencies": {
"express": "^4.18.2",
"jest": "^29.5.0"
},
"jest" : {
"collectCoverage": true,
"testEnvironment": "node",
"collectCoverageFrom": [
"src/*.ts"
]

}
}