Skip to content

Commit

Permalink
ci: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcbento committed Dec 17, 2024
1 parent 8b7e7ff commit 422b907
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ jobs:

- run: npm ci

- run: npm run test

- name: Vitest Coverage Report
uses: davelosert/[email protected]

- run: npm run test
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ $ npm run test:e2e
- [ ] All filters, except for the city, are optional
- [x] For an ORG to access the application as an admin, it must be logged in

### Tests Coverage

| Metric | Coverage | Covered | Total |
|--------------|----------|---------|-------|
| Statements | 97.25% | 248 | 255 |
| Branches | 98.46% | 64 | 65 |
| Functions | 95.12% | 39 | 41 |
| Lines | 97.25% | 248 | 255 |

<img alt="example" width="800" src="coverage-services.png">

### DB Schema

<img alt="example" width="800" src="schema_db.png">
Expand Down
Binary file added coverage-services.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:watch": "vitest --dir src/services",
"pretest:e2e": "run-s test:create-prisma-environment test:install-prisma-environment",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:ui": "vitest --ui --dir src/services --coverage.enabled=true",
"test:e2e": "vitest run --dir src/controllers"
},
"keywords": [],
Expand Down

0 comments on commit 422b907

Please sign in to comment.