Skip to content

fix: make sequenceDB typesafe #25

fix: make sequenceDB typesafe

fix: make sequenceDB typesafe #25

Triggered via push March 29, 2024 08:01
Status Failure
Total duration 1m 37s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
unit-test
Argument of type 'boolean | undefined' is not assignable to parameter of type 'boolean'.
unit-test
Argument of type 'boolean | undefined' is not assignable to parameter of type 'boolean'.
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when parsing a sequenceDiagram > should handle notes over a single actor: packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js#L863
AssertionError: expected [ 'Bob', 'Bob' ] to be 'Bob' // Object.is equality - Expected: "Bob" + Received: Array [ "Bob", "Bob", ] ❯ packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js:863:30
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when parsing a sequenceDiagram > should handle notes over multiple actors: packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js#L877
AssertionError: expected [ 'Alice', 'Bob' ] to be 'Alice' // Object.is equality - Expected: "Alice" + Received: Array [ "Alice", "Bob", ] ❯ packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js:877:30
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when rendering a sequenceDiagram APA > should handle one actor and a centered note: packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts#L1337
TypeError: Cannot read properties of undefined (reading 'x') ❯ buildNoteModel packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1337:35 ❯ calculateLoopBounds packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1572:25 ❯ Object.draw packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:816:28 ❯ packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js:1682:5
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when rendering a sequenceDiagram APA > should handle two actors and two centered shared notes: packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts#L1337
TypeError: Cannot read properties of undefined (reading 'x') ❯ buildNoteModel packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1337:35 ❯ calculateLoopBounds packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1572:25 ❯ Object.draw packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:816:28 ❯ packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js:1803:5
unit-test
Process completed with exit code 1.
unit-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.