Commit 8af10bd
authored
refactor(ci): add vitest coverage threshold gate to CI pipeline (JhaSourav07#469)
## Description
Fixes JhaSourav07#401
## Pillar
- [ ] π¨ Pillar 1 β New Theme Design
- [ ] π Pillar 2 β Geometric SVG Improvement
- [ ] π Pillar 3 β Timezone Logic Optimization
- [x] π οΈ Other (Bug fix, refactoring, docs)
## Visual Preview
N/A β this is a CI/config change, no SVG output affected.
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [ ] I have updated `README.md` if I added a new theme or URL
parameter.
- [x] I have started the repo.
- [x] I have made sure that i have only one commit to merge in this PR.
- [ ] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [ ] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.
## Test Coverage Results
| Metric | Coverage | Threshold |
|------------|----------|-----------|
| Statements | 86.45% | 70% β
|
| Branches | 72.93% | 70% β
|
| Functions | 85.44% | 70% β
|
| Lines | 88.85% | 70% β
|
235 tests passing across 17 test files.2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
0 commit comments