alchemy-run/alchemy
Infrastructure as Effects
383d8e8 ↗TypeScript★ 1,792 (+19 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 1,120
- in 3,421 files
- Compared
- 93.8%
- 70 tests could not be compared
- Findings
- 33
- 33 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.
inner entrypoint unit tests > returns fetch from asset worker when matching existing asset path
packages/cloudflare-runtime/src/internal/workers-shared/workers/router-worker/tests/index.test.ts:141–162 ↗inner entrypoint unit tests > returns fetch from asset worker when matching existing asset path and invoke_user_worker_ahead_of_assets is not provided
packages/cloudflare-runtime/src/internal/workers-shared/workers/router-worker/tests/index.test.ts:164–186 ↗
- 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.
process.env > responds to fetch /
packages/cloudflare-runtime/src/rolldown/test/process-env.test.ts:10–15 ↗process.env > replaces process.env.NODE_ENV with 'production'
packages/cloudflare-runtime/src/rolldown/test/process-env.test.ts:17–22 ↗process.env > replaces global.process.env.NODE_ENV with 'production'
packages/cloudflare-runtime/src/rolldown/test/process-env.test.ts:24–29 ↗process.env > replaces globalThis.process.env.NODE_ENV with 'production'
packages/cloudflare-runtime/src/rolldown/test/process-env.test.ts:31–36 ↗
and 2 more
- Parameterization candidatewarning
5 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 5 tests form one cluster, reported as a single finding instead of 10 pairwise findings (spanni.
normalizeBasePath > valid values > accepts the root as-is
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:22–24 ↗normalizeBasePath > valid values > accepts a single absolute segment
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:26–31 ↗normalizeBasePath > valid values > accepts nested segments
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:33–38 ↗normalizeBasePath > valid values > preserves a single trailing slash in the canonical form
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:66–71 ↗
and 1 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.
normalizeBasePath > valid values > accepts long values
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:80–86 ↗normalizeBasePath > valid values > accepts long Unicode values
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:88–94 ↗
- 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.
normalizeBasePath > invalid values > rejects an empty string
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:105–107 ↗normalizeBasePath > invalid values > rejects backslashes
packages/cloudflare-runtime/src/internal/workers-shared/shared/tests/base-path.test.ts:109–111 ↗
Findings by rule
- Parameterization candidate32
- Near-duplicate test1
Not compared
- context could not be resolved70
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-10-29 | 13 | 383d8e8 | 0.9.0 | 1,120 | 93.8% | 33 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/alchemy-run/alchemy.git
cd alchemy
git checkout 383d8e8fc5870b978c8952672722b83242776e0e
npx [email protected] .