mattpocock/sandcastle
Orchestrate sandboxed coding agents in TypeScript with sandcastle.run()
8c2c568 ↗TypeScript★ 8,823 (+31 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 1,841
- in 94 files
- Compared
- 93.5%
- 120 tests could not be compared
- Findings
- 110
- 107 warnings
- Exact duplicates
- 3
- 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.
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
copyToWorktree > succeeds when first cp fails but fallback cp -R succeeds
src/CopyToWorktree.test.ts:64–81 ↗copyToWorktree > defaults to 60s timeout when timeoutMs is omitted
src/CopyToWorktree.test.ts:258–274 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
FileDisplay > intro is a no-op (only delimiter in log)
src/Display.test.ts:215–227 ↗FileDisplay > creates log file with run delimiter on initialization
src/Display.test.ts:411–423 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
output type-level exclusion > InteractiveOptions does not accept output
src/run.test.ts:1087–1094 ↗output type-level exclusion > WorktreeInteractiveOptions does not accept output
src/run.test.ts:1096–1103 ↗
- Cross-file duplicatewarning
2 tests across 2 files have identical bodies under an equivalent context.
worktree.run() > sandbox is required (type error if omitted)
src/createWorktree.test.ts:1293–1300 ↗RunOptions > requires sandbox field typed as SandboxProvider
src/run.test.ts:355–361 ↗
- 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.
worktree.interactive() > signal option has correct type on WorktreeInteractiveOptions
src/createWorktree.test.ts:622–628 ↗worktree.run() > signal option has the correct type on WorktreeRunOptions
src/createWorktree.test.ts:1415–1422 ↗
Findings by rule
- Parameterization candidate105
- Duplicate test3
- Near-duplicate test1
- Cross-file duplicate1
Not compared
- context could not be resolved101
- imported helper unreadable8
- vi.mock factory unreadable11
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-04 | 8 | 8c2c568 | 0.9.0 | 1,841 | 93.5% | 110 | 3 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/mattpocock/sandcastle.git
cd sandcastle
git checkout 8c2c5689a836a626232ff09b4c62cfdf72ad7684
npx [email protected] .