Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Mocha architecture

Changing lib/utils in Mocha reaches 54 modules. 21 files call it directly. Snapshot 5b5afa7.

The first file to open in Mocha is lib/utils. A change there reaches 54 of 71 modules.

This lead file reaches 76% of the graph. The median published proof reaches 60%.

lib/utils54 · 21 fan-in
lib/errors53 · 20 fan-in
lib/runnable45 · 6 fan-in
lib/suite42 · 7 fan-in
lib/runner35 · 20 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: Mocha · Score: 95.3/100 (Excellent architecture) · 71 modules · 174 edges · JavaScript · 10 of 43 · Language score median 91.7

Cycles
1
Duplicate authorities
0
God modules
4
Layer violations
0
arc impact lib/utils

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for Mocha
[![ArcSight architecture proof for Mocha](https://arcsight.ai/badge/proof/mocha/)](https://arcsight.ai/repositories/mocha/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

Mocha · 5b5afa7

RankFileFan-inBlastShare
1lib/utils

concentrates too many responsibilities, shared utility hub

215476%
2lib/errors

concentrates too many responsibilities, shared utility hub

205375%
3lib/runnable64563%
4lib/suite74259%
5lib/runner

concentrates too many responsibilities

203549%
All ranked files
RankFileFan-inBlastShare
6lib/reporters/base163245%
7lib/test52028%
8lib/mocha61420%
9mocha00

Circular dependencies

This snapshot records 1 dependency cycles.

Nearby proofs

Snapshot notes

In mochajs mocha, a change that begins in utils keeps traveling until it reaches errors, with runnable as the third file on that walk and the ROOT_CLUSTER group as the group around them, snapshot mark bdeaddaada.

suite is worth opening beside utils because runner still participates when suite moves, and reporters base stays in view for mochajs mocha, snapshot mark bdeaddaada.

Review test only after errors and mocha are both on the table, since the link from error-constants back to runnable belongs to mochajs mocha under snapshot mark bdeaddaada.

utils and errors are later stops, and a reviewer who has already seen runnable should still look at suite before treating the ROOT_CLUSTER group as understood for mochajs mocha, snapshot mark bdeaddaada.

suite closes the file list after runner and utils, which keeps the mochajs mocha note tied to snapshot mark bdeaddaada, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • ROOT_CLUSTER (56 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in mochajs mocha: utils?
Start with utils, because the rest of the mochajs mocha walk leaves from that file and errors is the next file in the same review. Commit bdeaddaada records it.
What else is on the mochajs mocha walk besides utils and runnable?
runnable and suite stay on the walk with runner, which are different files from utils inside the ROOT_CLUSTER group for mochajs mocha. Commit bdeaddaada records it.
How should a reviewer use reporters base in the mochajs mocha snapshot?
Keep reporters base, test, and mocha open together, then check error-constants before merging the mochajs mocha change. Commit bdeaddaada records it.
Where does the mochajs mocha review stop after utils?
Stop after utils, errors, and runnable have been compared with suite, leaving the ROOT_CLUSTER group until those mochajs mocha files are clear. Commit bdeaddaada records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/mocha/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo