Skip to content

Commit

Permalink
Add "json" coverage reporter (#124)
Browse files Browse the repository at this point in the history
### Description

Add `json` coverage reporter

---

Closes #123
  • Loading branch information
fabasoad authored Jan 24, 2025
1 parent c13c4f1 commit 0d0cbad
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch: {}

jobs:
jest:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ yarn-error.log
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# jest
jest-report.json
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "ncc build -m src/index.ts",
"lint": "biome lint --write src",
"test": "jest --config=jest.config.json --coverage"
"test": "jest --config=jest.config.json --json --outputFile=jest-report.json --coverage"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +28,7 @@
"dependencies": {
"@actions/core": "1.11.1",
"@actions/github": "6.0.0",
"twilio": "5.4.0"
"twilio": "5.4.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3996,14 +3996,14 @@ __metadata:
jest: "npm:29.7.0"
jest-circus: "npm:29.7.0"
ts-jest: "npm:29.2.5"
twilio: "npm:5.4.0"
twilio: "npm:5.4.2"
typescript: "npm:5.7.3"
languageName: unknown
linkType: soft

"twilio@npm:5.4.0":
version: 5.4.0
resolution: "twilio@npm:5.4.0"
"twilio@npm:5.4.2":
version: 5.4.2
resolution: "twilio@npm:5.4.2"
dependencies:
axios: "npm:^1.7.4"
dayjs: "npm:^1.11.9"
Expand All @@ -4012,7 +4012,7 @@ __metadata:
qs: "npm:^6.9.4"
scmp: "npm:^2.1.0"
xmlbuilder: "npm:^13.0.2"
checksum: 10/bb51a61dca5946de108cbea4cf0b85a5e311a8dd825e4396298a979362391ab7dbcab04fd5faee1c909649f7f22bdd4828554c0ec53454099937a678fbf97305
checksum: 10/6f0a8f4629ad85721e5698b3314f146a1d168daf4026353388622e3ab67ba6ef71ff9107590f32c666a82c654ead213e2de45e5dfce92bec590b813676fc4cae
languageName: node
linkType: hard

Expand Down

0 comments on commit 0d0cbad

Please sign in to comment.