Skip to content

[pull] develop from mermaid-js:develop - #223

Merged
pull[bot] merged 3 commits into
code:developfrom
mermaid-js:develop
Aug 22, 2026
Merged

[pull] develop from mermaid-js:develop#223
pull[bot] merged 3 commits into
code:developfrom
mermaid-js:develop

Conversation

@pull

@pull pull Bot commented Aug 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ashishjain0512 and others added 3 commits August 21, 2026 13:38
Adds rendering coverage for syntax the e2e suite does not currently exercise.

sequenceDiagram-central-connections.spec.ts (37 tests)
  Central-connection message syntax: the ()->>() family plus its REVERSE and
  DUAL forms, in both directions, with and without autonumber.

sequenceDiagram-participant-types.spec.ts (30 tests)
  The participant type matrix (actor, boundary, control, entity, database,
  collections, queue) combined with notes in all positions, loops, alternative
  flows, parallel blocks, self-references, and long or wrapped text.

mindmap.spec.ts (3 tests)
  A formatted label with a linebreak, wrapping and emojis; all shapes with an
  mdi:fire icon; and a label containing the char sequence "graph".

All 87 tests across the three files pass locally against develop.
The e2e suite defines rendering snapshots as .mmd files under
e2e/diagrams/<group>/, which e2e/rendering/mmd-snapshots.spec.ts
discovers and registers automatically. This change moves the coverage
added here over to that pattern instead of hand-written spec files.

- Drop sequenceDiagram-participant-types.spec.ts entirely: all 30 tests
  already exist as fixtures in e2e/diagrams/sequence/.
- Drop sequenceDiagram-central-connections.spec.ts: 23 of its 37 tests
  were already covered by existing fixtures; the 14 genuinely new
  self-reference cases are added as .mmd files.
- Add the two participant-type scenarios that extended an existing
  fixture with central connections under their own names, so the
  existing baselines are left untouched.
- Drop the two mindmap tests that duplicate existing fixtures. The
  mdi:fire shape test stays in mindmap.spec.ts because it asserts via
  the shouldHaveRoot validation callback, which the generic .mmd runner
  cannot express.

Net effect: 16 new fixtures, no new spec files.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…dmap-coverage

test(e2e): expand sequence diagram and mindmap rendering coverage
@pull pull Bot locked and limited conversation to collaborators Aug 22, 2026
@pull pull Bot added the ⤵️ pull label Aug 22, 2026
@pull
pull Bot merged commit 5d90f8c into code:develop Aug 22, 2026
9 of 10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants