mermaid-js/mermaid
Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
63333fd ↗TypeScript★ 91,017 (+23 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 4,725
- in 1,016 files
- Compared
- 73.2%
- 1,265 tests could not be compared
- Findings
- 250
- 242 warnings
- Exact duplicates
- 8
- 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.
info > should throw because of unsupported info grammar
packages/mermaid/src/diagrams/info/info.spec.ts:14–19 ↗info > should throw because of unsupported info grammar
packages/mermaid/src/diagrams/info/info.spec.ts:21–26 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
item data data > KNBN-32 should be possible to set the icon
packages/mermaid/src/diagrams/kanban/kanban.spec.ts:435–443 ↗item data data > KNBN-33 should be possible to set the icon
packages/mermaid/src/diagrams/kanban/kanban.spec.ts:444–452 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
packet diagrams > should handle bit counts
packages/mermaid/src/diagrams/packet/packet.spec.ts:77–101 ↗packet diagrams > should handle bit counts with bit or bits
packages/mermaid/src/diagrams/packet/packet.spec.ts:103–127 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
state diagram V2, > when parsing an info graph it > handle "as" in state names
packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js:89–96 ↗state diagram V2, > when parsing an info graph it > handle "as" in state names 1
packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js:97–104 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
state diagram, > when parsing an info graph it > handle "as" in state names
packages/mermaid/src/diagrams/state/stateDiagram.spec.js:99–106 ↗state diagram, > when parsing an info graph it > handle "as" in state names 1
packages/mermaid/src/diagrams/state/stateDiagram.spec.js:107–114 ↗
Findings by rule
- Parameterization candidate216
- Duplicate test name11
- Near-duplicate test10
- Duplicate test8
- Duplicate .each row4
- Cross-file duplicate1
Not compared
- imported helper unreadable1,078
- context could not be resolved187
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-05 | 11 | 63333fd | 0.9.0 | 4,725 | 73.2% | 250 | 8 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/mermaid-js/mermaid.git
cd mermaid
git checkout 63333fd8db0540377d84795c7a43c59ded353b18
npx [email protected] .