Commit a756184
authored
test(LanguageChart): add massive scaling coverage (JhaSourav07#3619)
## Description
Fixes # (issue number)
## Pillar
- [ ] π¨ Pillar 1 β New Theme Design
- [ ] π Pillar 2 β Geometric SVG Improvement
- [ ] π Pillar 3 β Timezone Logic Optimization
- [ ] π οΈ Other (Bug fix, refactoring, docs)
## Visual Preview
## Description
Fixes JhaSourav07#2564
Added comprehensive massive-scaling test coverage for `LanguageChart` to
verify stability and rendering behavior under extremely large datasets
and high metric values.
## Pillar
* [ ] π¨ Pillar 1 β New Theme Design
* [ ] π Pillar 2 β Geometric SVG Improvement
* [ ] π Pillar 3 β Timezone Logic Optimization
* [x] π οΈ Other (Bug fix, refactoring, docs)
## Visual Preview
Not applicable β test-only change.
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally.
* [x] I have run `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 (not applicable β test-only change).
* [ ] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.
## Tests Added
* Verifies rendering with massive language datasets.
* Tests extremely large percentage values.
* Validates gradient generation under heavy load.
* Confirms layout stability with high-volume entries.
* Checks rendering performance remains within acceptable limits.
## Verification
* β
5 test cases added
* β
Vitest passes
* β
Lint passes
* β
No runtime crashes under large datasets
## Checklist before requesting a review:
- [ ] I have read the `CONTRIBUTING.md` file.
- [ ] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [ ] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [ ] 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.
- [ ] I have started the repo.
- [ ] 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.1 file changed
Lines changed: 69 additions & 0 deletions
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments