vitejs/vite
Next generation frontend tooling. It's fast!
a579e35 ↗TypeScript★ 83,845 (+160 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 878
- in 74 files
- Compared
- 75.7%
- 213 tests could not be compared
- Findings
- 57
- 57 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.
- 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.
matchImportsToPreloadMarkers > pairs a single dynamic import with its marker
packages/vite/src/node/__tests__/plugins/importAnalysisBuild.spec.ts:185–189 ↗matchImportsToPreloadMarkers > #3051: a lone import whose marker precedes it still pairs with that marker
packages/vite/src/node/__tests__/plugins/importAnalysisBuild.spec.ts:211–215 ↗
- Duplicate test namewarning
2 tests in this file share the full title "parse positives > options with multilines".
parse positives > options with multilines
packages/vite/src/node/__tests__/plugins/importGlob/parse.spec.ts:64–90 ↗parse positives > options with multilines
packages/vite/src/node/__tests__/plugins/importGlob/parse.spec.ts:92–114 ↗
- 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.
hoist @ rules > hoist @import
packages/vite/src/node/__tests__/plugins/css.spec.ts:160–164 ↗hoist @ rules > hoist @import url with semicolon
packages/vite/src/node/__tests__/plugins/css.spec.ts:166–170 ↗hoist @ rules > hoist @import url data with semicolon
packages/vite/src/node/__tests__/plugins/css.spec.ts:172–178 ↗hoist @ rules > hoist @import with semicolon in quotes
packages/vite/src/node/__tests__/plugins/css.spec.ts:180–184 ↗
and 5 more
- 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.
parse positives > basic
packages/vite/src/node/__tests__/plugins/dynamicImportVar/parse.spec.ts:24–26 ↗parse positives > alias path
packages/vite/src/node/__tests__/plugins/dynamicImportVar/parse.spec.ts:28–30 ↗parse positives > alias path with multi ../
packages/vite/src/node/__tests__/plugins/dynamicImportVar/parse.spec.ts:32–34 ↗parse positives > with query
packages/vite/src/node/__tests__/plugins/dynamicImportVar/parse.spec.ts:36–38 ↗
and 5 more
- 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.
injectQuery > normalize windows path
packages/vite/src/node/__tests__/utils.spec.ts:142–146 ↗injectQuery > absolute file path
packages/vite/src/node/__tests__/utils.spec.ts:148–152 ↗injectQuery > absolute file path with parameters
packages/vite/src/node/__tests__/utils.spec.ts:154–158 ↗injectQuery > path with hash
packages/vite/src/node/__tests__/utils.spec.ts:173–177 ↗
and 5 more
Findings by rule
- Parameterization candidate55
- Near-duplicate test1
- Duplicate test name1
Not compared
- context could not be resolved32
- imported helper unreadable179
- registered-elsewhere2
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 | 7 | a579e35 | 0.10.0 | 878 | 75.7% | 57 | 0 |
| 2026-10-23 | 6 | 4ca25e1 | 0.7.0 | 849 | 96.5% | 67 | 1 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/vitejs/vite.git
cd vite
git checkout a579e352a66fbdce6a51d4e1f67006ccf4f91343
npx [email protected] .