mastra-ai/mastra
Mastra is the modern TypeScript framework for AI-powered applications and agents.
d1f0a92 ↗TypeScript★ 29,678 (+49 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 83,513
- in 6,244 files
- Compared
- 92.5%
- 6,290 tests could not be compared
- Findings
- 2,946
- 2,875 warnings
- Exact duplicates
- 71
- 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.
AgentBrowser > constructor > starts in pending status
browser/agent-browser/src/__tests__/agent-browser.test.ts:176–178 ↗AgentBrowser > status lifecycle > starts in pending state
browser/agent-browser/src/__tests__/agent-browser.test.ts:256–258 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
getScoresRefetchInterval > when the observability storage domain is unavailable > disables polling
client-sdks/react/src/hooks/scores/__tests__/scores-refetch-interval.test.ts:17–21 ↗getTraceSpanScoresRefetchInterval > when the observability storage domain is unavailable > disables polling
client-sdks/react/src/hooks/scores/__tests__/scores-refetch-interval.test.ts:43–47 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
getScoresRefetchInterval > when for supported scores queries > keeps polling
client-sdks/react/src/hooks/scores/__tests__/scores-refetch-interval.test.ts:33–37 ↗getTraceSpanScoresRefetchInterval > when for supported queries > keeps polling
client-sdks/react/src/hooks/scores/__tests__/scores-refetch-interval.test.ts:59–63 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
describeRunError > AI_APICallError ThrottlingException → Provider rate limit reached, continued once the provider recovers
mastracode/factory/src/run-error.test.ts:12–18 ↗describeRunError > offers to continue, switch credential, or switch model when the provider throttles the run
mastracode/factory/src/run-error.test.ts:174–179 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
createMcpManager > zero-tool server handling > marks a server with zero tools as failed on reconnect
mastracode/sdk/src/mcp/__tests__/manager.test.ts:815–839 ↗createMcpManager > reconnectServer > handles server reconnecting with zero tools
mastracode/sdk/src/mcp/__tests__/manager.test.ts:1004–1030 ↗
Findings by rule
- Parameterization candidate2,799
- Duplicate test71
- Cross-file duplicate38
- Near-duplicate test28
- Duplicate test name10
Not compared
- registered-elsewhere3,619
- context could not be resolved1,772
- imported helper unreadable646
- order-dependent-state149
- registered-inside-function103
- named-callback1
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-20 | 10 | d1f0a92 | 0.10.0 | 83,513 | 92.5% | 2,946 | 71 |
| 2026-11-18 | 16 | a226166 | 0.10.0 | 82,372 | 92.6% | 2,971 | 72 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/mastra-ai/mastra.git
cd mastra
git checkout d1f0a92ca41e1b725ed296abeb540908d09b5c64
npx [email protected] .