sveltejs/kit
web development, streamlined
5c7f430 ↗JavaScript★ 20,903 (+4 today)lists: javascriptvitest-dedup 0.10.0
- Tests analyzed
- 1,345
- in 130 files
- Compared
- 92.3%
- 103 tests could not be compared
- Findings
- 96
- 95 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.
is_remote_forbidden > forbids a non-GET remote call whose origin differs from the self-origin
packages/kit/src/runtime/server/csrf.spec.js:219–230 ↗is_remote_forbidden > does not gate on form content type — forbids a JSON remote call with a foreign origin
packages/kit/src/runtime/server/csrf.spec.js:302–315 ↗
- Duplicate test namewarning
2 tests in this file share the full title "convert_formdata > rejects field names without the form id suffix".
convert_formdata > rejects field names without the form id suffix
packages/kit/src/runtime/form-utils.spec.js:106–110 ↗convert_formdata > rejects field names without the form id suffix
packages/kit/src/runtime/form-utils.spec.js:184–191 ↗
- Parameterization candidatewarning
9 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 9 tests form one cluster, reported as a single finding instead of 36 pairwise findings (spanni.
prerenders /
packages/kit/test/prerendering/basics/test/tests.spec.js:31–34 ↗inserts http-equiv tag for cache-control headers
packages/kit/test/prerendering/basics/test/tests.spec.js:99–102 ↗loads a file with spaces in the filename
packages/kit/test/prerendering/basics/test/tests.spec.js:127–130 ↗fetching missing content results in a 404
packages/kit/test/prerendering/basics/test/tests.spec.js:212–215 ↗
and 5 more
- 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.
Rewrites types for a TypeScript module
packages/kit/src/core/sync/write_types/index.spec.js:65–88 ↗Rewrites types for a TypeScript module without param
packages/kit/src/core/sync/write_types/index.spec.js:90–113 ↗Rewrites types for a TypeScript module without param and jsdoc without types
packages/kit/src/core/sync/write_types/index.spec.js:115–140 ↗Rewrites types for a JavaScript module with `function`
packages/kit/src/core/sync/write_types/index.spec.js:142–167 ↗
and 4 more
- 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.
create package with javascript
packages/package/test/index.spec.js:125–129 ↗create package with the only jsconfig above the package root
packages/package/test/index.spec.js:131–133 ↗create package with typescript using esnext
packages/package/test/index.spec.js:135–137 ↗create package with typescript using nodenext
packages/package/test/index.spec.js:139–141 ↗
and 4 more
Findings by rule
- Parameterization candidate94
- Duplicate test name1
- Duplicate test1
Not compared
- context could not be resolved13
- registered-elsewhere90
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-07 | 20 | 5c7f430 | 0.10.0 | 1,345 | 92.3% | 96 | 1 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/sveltejs/kit.git
cd kit
git checkout 5c7f430b99c792a5b030e90d5cf2cf4f3c1fc836
npx [email protected] .