logto-io/logto
🧑🚀 Authentication and authorization infrastructure for SaaS and AI apps, built on OIDC and OAuth 2.1 with multi-tenancy, SSO, and RBAC.
3caf470 ↗TypeScript★ 14,784 (+12 today)lists: typescriptvitest-dedup 0.7.0
- Tests analyzed
- 582
- in 974 files
- Compared
- 87.3%
- 74 tests could not be compared
- Findings
- 22
- 22 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
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.
validateUsernameAgainstPolicy (lowercase-only, length 4-8) > rejects too short
packages/toolkit/core-kit/src/username-policy.test.ts:98–100 ↗validateUsernameAgainstPolicy (lowercase-only, length 4-8) > rejects too long
packages/toolkit/core-kit/src/username-policy.test.ts:101–103 ↗validateUsernameAgainstPolicy (lowercase-only, length 4-8) > rejects an uppercase letter
packages/toolkit/core-kit/src/username-policy.test.ts:104–106 ↗validateUsernameAgainstPolicy (lowercase-only, length 4-8) > rejects a digit
packages/toolkit/core-kit/src/username-policy.test.ts:107–109 ↗
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.
domainVerificationFilesGuard > accepts verification file path /-verification.txt
packages/schemas/src/foundations/jsonb-types/custom-domain.test.ts:9–24 ↗domainVerificationFilesGuard > rejects verification file path /../secret.txt
packages/schemas/src/foundations/jsonb-types/custom-domain.test.ts:26–35 ↗
- 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.
getType > getStringType
packages/schemas/src/gen/utils.test.ts:15–17 ↗getType > should return number
packages/schemas/src/gen/utils.test.ts:19–21 ↗
- 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.
parsePhoneNumber > parsePhoneNumber should strip the leading +
packages/shared/src/utils/phone.test.ts:11–14 ↗parsePhoneNumber > parsePhoneNumber should strip the leading 0
packages/shared/src/utils/phone.test.ts:16–19 ↗
- 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.
parsePhoneNumber > parsePhoneNumber should strip the leading 0
packages/shared/src/utils/phone.test.ts:16–19 ↗parsePhoneNumber > parsePhoneNumber should strip non-digit characters
packages/shared/src/utils/phone.test.ts:21–24 ↗
Findings by rule
- Parameterization candidate22
Not compared
- context could not be resolved74
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-24 | 5 | 3caf470 | 0.7.0 | 582 | 87.3% | 22 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/logto-io/logto.git
cd logto
git checkout 3caf470e5bb465e21c15714b569f7db697e31516
npx [email protected] .