openfoodfacts/openfoodfacts-explorer
The next-generation frontend for OpenFoodFacts, made with SvelteKit
17821bc ↗Svelte★ 82 (+0 today)lists: sveltevitest-dedup 0.10.0
- Tests analyzed
- 177
- in 32 files
- Compared
- 100%
- 0 tests could not be compared
- Findings
- 12
- 12 warnings
- Exact duplicates
- 0
- 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.
- Parameterization candidatewarning
8 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 8 tests form one cluster, reported as a single finding instead of 28 pairwise findings (spanni.
toLuceneString > handles a single include facet without a query
src/lib/facets.test.ts:27–33 ↗toLuceneString > handles a single exclude facet without a query
src/lib/facets.test.ts:35–41 ↗toLuceneString > handles multiple include values for the same facet
src/lib/facets.test.ts:43–49 ↗toLuceneString > handles multiple exclude values for the same facet
src/lib/facets.test.ts:51–57 ↗
and 4 more
- 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.
Gs1Barcode.parse() > invalid input > rejects too-short digits
src/lib/barcodes/gs1.test.ts:83–85 ↗Gs1Barcode.parse() > invalid input > rejects wrong-length digits with valid-looking content
src/lib/barcodes/gs1.test.ts:87–89 ↗Gs1Barcode.parse() > invalid input > rejects EAN-13 with wrong checksum
src/lib/barcodes/gs1.test.ts:91–94 ↗Gs1Barcode.parse() > invalid input > rejects non-numeric string
src/lib/barcodes/gs1.test.ts:96–98 ↗
and 3 more
- Parameterization candidatewarning
6 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 6 tests form one cluster, reported as a single finding instead of 15 pairwise findings (spanni.
getServingSizeValidationResult > shows an error when the input has no number at all
src/lib/ui/edit-product-steps/nutrition.test.ts:20–24 ↗getServingSizeValidationResult > shows an error when the input is only a number
src/lib/ui/edit-product-steps/nutrition.test.ts:26–30 ↗getServingSizeValidationResult > shows a warning when the number is there but the unit is unknown
src/lib/ui/edit-product-steps/nutrition.test.ts:32–36 ↗getServingSizeValidationResult > does not let punctuation contribute to identifying an unknown unit
src/lib/ui/edit-product-steps/nutrition.test.ts:38–42 ↗
and 2 more
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
makeSiteRelativeUrlsAbsolute > rebases root-relative and page-relative URLs against the source page
src/lib/api/staticPages.test.ts:40–59 ↗makeSiteRelativeUrlsAbsolute > preserves fragment-only and absolute URLs
src/lib/api/staticPages.test.ts:61–71 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
Gs1Barcode.parse() > valid barcodes > parses EAN-13 (4006381333931)
src/lib/barcodes/gs1.test.ts:25–31 ↗Gs1Barcode.parse() > valid barcodes > parses EAN-8 (GTIN-8)
src/lib/barcodes/gs1.test.ts:43–49 ↗
Findings by rule
- Parameterization candidate12
Not compared
Every test was compared.
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-19 | 19 | 17821bc | 0.10.0 | 177 | 100% | 12 | 0 |
| 2026-11-17 | 17 | 17821bc | 0.10.0 | 177 | 100% | 12 | 0 |
| 2026-11-14 | 17 | 9781704 | 0.10.0 | 168 | 100% | 12 | 0 |
| 2026-11-12 | 15 | 9781704 | 0.10.0 | 168 | 100% | 12 | 0 |
| 2026-11-02 | 20 | 4b6f600 | 0.9.0 | 131 | 100% | 12 | 0 |
| 2026-11-01 | 23 | 2c37c2f | 0.9.0 | 128 | 100% | 12 | 0 |
| 2026-10-21 | 3 | a251501 | 0.7.0 | 124 | 100% | 12 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/openfoodfacts/openfoodfacts-explorer.git
cd openfoodfacts-explorer
git checkout 17821bcb7e2e33c5637d5187f0b73b26d83e8b0b
npx [email protected] .