chaitin/MonkeyCode
企业级 AI 办公工作台
ad169c9 ↗TypeScript★ 5,092 (+23 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 1,672
- in 309 files
- Compared
- 96.6%
- 57 tests could not be compared
- Findings
- 32
- 32 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.
checkOpAllowed 受控准入 > 受控 tab 放行
browser-extension/test/core.test.ts:86–90 ↗checkOpAllowed 受控准入 > 不敏感的 op 不做受控校验
browser-extension/test/core.test.ts:92–96 ↗
- 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.
devtools 快捷键判定 > mac 的 ⌘⇧I 同样命中(只判 ctrlKey 时 mac 用户打不开 devtools)
desktop/ui-next/src/app/shellChrome.test.ts:23–26 ↗devtools 快捷键判定 > 认物理键位而非 key:输入法/非拉丁布局下 key 不是 I,仍要命中
desktop/ui-next/src/app/shellChrome.test.ts:28–33 ↗
- 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.
WebView 整页刷新快捷键判定 > 拦截 Windows/Linux 的普通与强制刷新
desktop/ui-next/src/app/shellChrome.test.ts:37–42 ↗WebView 整页刷新快捷键判定 > mac 的 ⌘R 同样拦截,并按物理键位识别
desktop/ui-next/src/app/shellChrome.test.ts:44–49 ↗
- 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.
countChangesUnder:目录行的改动聚合 > 含各级子目录
desktop/ui-next/src/features/files/treeChanges.test.tsx:13–15 ↗countChangesUnder:目录行的改动聚合 > 不把同前缀的兄弟目录算进来(src 不吃 src2)
desktop/ui-next/src/features/files/treeChanges.test.tsx:17–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.
countChangesUnder:目录行的改动聚合 > 不把同前缀的兄弟目录算进来(src 不吃 src2)
desktop/ui-next/src/features/files/treeChanges.test.tsx:17–19 ↗countChangesUnder:目录行的改动聚合 > 末尾带不带分隔符结果一致
desktop/ui-next/src/features/files/treeChanges.test.tsx:21–23 ↗
Findings by rule
- Parameterization candidate31
- Near-duplicate test1
Not compared
- imported helper unreadable56
- context could not be resolved1
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-08 | 17 | ad169c9 | 0.10.0 | 1,672 | 96.6% | 32 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/chaitin/MonkeyCode.git
cd MonkeyCode
git checkout ad169c9b946ea04a1fc19a7abff9815d38116a73
npx [email protected] .