karakeep-app/karakeep
A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
bcc4b90 ↗TypeScript★ 30,665 (+40 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 1,310
- in 112 files
- Compared
- 89.1%
- 143 tests could not be compared
- Findings
- 83
- 83 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.
Rules Routes > privacy checks > cannot create rule with event on another user's tag
packages/trpc/routers/rules.test.ts:284–301 ↗Rules Routes > privacy checks > cannot create rule with condition on another user's tag
packages/trpc/routers/rules.test.ts:303–320 ↗
- 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.
Rules Routes > privacy checks > cannot create rule with condition on another user's tag
packages/trpc/routers/rules.test.ts:303–320 ↗Rules Routes > privacy checks > cannot create rule with action on another user's tag
packages/trpc/routers/rules.test.ts:322–339 ↗
- Parameterization candidatewarning
13 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 13 tests form one cluster, reported as a single finding instead of 78 pairwise findings (span.
RuleEngine > doesBookmarkMatchConditions > should return true for urlContains condition
packages/trpc/lib/__tests__/ruleEngine.test.ts:218–224 ↗RuleEngine > doesBookmarkMatchConditions > should return false for urlContains condition mismatch
packages/trpc/lib/__tests__/ruleEngine.test.ts:226–232 ↗RuleEngine > doesBookmarkMatchConditions > should return false for urlDoesNotContain condition when URL contains string
packages/trpc/lib/__tests__/ruleEngine.test.ts:234–240 ↗RuleEngine > doesBookmarkMatchConditions > should return true for urlDoesNotContain condition when URL does not contain string
packages/trpc/lib/__tests__/ruleEngine.test.ts:242–248 ↗
and 9 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.
getBookmarkIdsFromMatcher > should handle tagName matcher
packages/trpc/lib/__tests__/search.test.ts:241–249 ↗getBookmarkIdsFromMatcher > should handle hasNotes matcher
packages/trpc/lib/__tests__/search.test.ts:425–429 ↗getBookmarkIdsFromMatcher > should handle hasHighlights matcher for the current user
packages/trpc/lib/__tests__/search.test.ts:437–444 ↗getBookmarkIdsFromMatcher > should handle AND matcher
packages/trpc/lib/__tests__/search.test.ts:594–604 ↗
and 3 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.
getBookmarkIdsFromMatcher > should handle tagName matcher with inverse=true
packages/trpc/lib/__tests__/search.test.ts:251–259 ↗getBookmarkIdsFromMatcher > should handle hasNotes matcher with hasNotes=false
packages/trpc/lib/__tests__/search.test.ts:431–435 ↗getBookmarkIdsFromMatcher > should handle hasHighlights=false and ignore another user's highlights
packages/trpc/lib/__tests__/search.test.ts:446–453 ↗getBookmarkIdsFromMatcher > should handle tagged matcher
packages/trpc/lib/__tests__/search.test.ts:654–658 ↗
and 1 more
Findings by rule
- Parameterization candidate81
- Near-duplicate test2
Not compared
- context could not be resolved143
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-18 | 15 | bcc4b90 | 0.10.0 | 1,310 | 89.1% | 83 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/karakeep-app/karakeep.git
cd karakeep
git checkout bcc4b90a2ae89f4b96ec23ce395ee9d3d1df6a72
npx [email protected] .