CodeWithCJ/SparkyFitness
SparkyFitness: Built for Families. Powered by AI. Track food, fitness, water, and health — together.
2aa2e9b ↗TypeScript★ 6,636 (+30 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 8,142
- in 1,744 files
- Compared
- 96.6%
- 278 tests could not be compared
- Findings
- 260
- 259 warnings
- Exact duplicates
- 1
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
buildChatProviderOptions > sets a per-user promptCacheKey for openai without retention on the default model
SparkyFitnessServer/tests/chatProviderOptions.test.ts:88–94 ↗buildChatProviderOptions > withholds 24h retention from gpt-4o-mini
SparkyFitnessServer/tests/chatProviderOptions.test.ts:123–136 ↗
- Redundant hookwarning
a nested afterEach repeats the work another afterEach earlier in its chain already performs.
- Near-duplicate testwarning
2 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
permissionUtils - canAccessUserData read/write segregation > symptoms permission > symptoms_read is satisfied by a delegate the database says has access
SparkyFitnessServer/tests/permissionUtils.test.ts:144–149 ↗permissionUtils - canAccessUserData read/write segregation > read-level permissions > diary_read should be satisfied by can_manage_diary delegate
SparkyFitnessServer/tests/permissionUtils.test.ts:163–171 ↗
- Near-duplicate testwarning
2 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
getDueDosesForDate helper > honors explicit schedule start_date even when set before created_at
SparkyFitnessServer/tests/schedules.test.ts:275–297 ↗getDueDosesForDate helper > handles schedules without created_at (legacy data) without regressing
SparkyFitnessServer/tests/schedules.test.ts:322–336 ↗
- Parameterization candidatewarning
7 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 7 tests form one cluster, reported as a single finding instead of 21 pairwise findings (spanni.
corsHelper > createCorsOriginChecker > should allow configured frontend URL
SparkyFitnessServer/tests/corsHelper.test.ts:64–76 ↗corsHelper > createCorsOriginChecker > should reject private network origins when allowPrivateNetworks=false
SparkyFitnessServer/tests/corsHelper.test.ts:92–104 ↗corsHelper > createCorsOriginChecker > should allow private network origins when allowPrivateNetworks=true
SparkyFitnessServer/tests/corsHelper.test.ts:106–118 ↗corsHelper > createCorsOriginChecker > should allow localhost from private networks when enabled
SparkyFitnessServer/tests/corsHelper.test.ts:120–132 ↗
and 3 more
Findings by rule
- Parameterization candidate256
- Near-duplicate test2
- Duplicate test1
- Redundant hook1
Not compared
- context could not be resolved226
- imported helper unreadable52
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-11-01 | 13 | 2aa2e9b | 0.9.0 | 8,142 | 96.6% | 260 | 1 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/CodeWithCJ/SparkyFitness.git
cd SparkyFitness
git checkout 2aa2e9bdeafd57b20a69fb100dccfc4e24e608c9
npx [email protected] .