Skip to content

fix: make sequenceDB typesafe #8984

fix: make sequenceDB typesafe

fix: make sequenceDB typesafe #8984

Triggered via pull request April 5, 2024 11:47
Status Failure
Total duration 2m 25s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when parsing a sequenceDiagram > should handle actor activation: packages/mermaid/src/diagrams/sequence/sequenceDb.ts#L163
Error: Trying to inactivate an inactive participant ([object Object]) ❯ addSignal packages/mermaid/src/diagrams/sequence/sequenceDb.ts:163:21 ❯ apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:521:9 ❯ packages/mermaid/src/diagrams/sequence/sequenceDb.ts:483:7 ❯ Object.apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:482:11 ❯ Object.anonymous packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:87:5 ❯ Parser.parse packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:435:36 ❯ Function.fromText packages/mermaid/src/Diagram.ts:43:18 ❯ getDiagramFromText packages/mermaid/src/mermaidAPI.ts:550:18 ❯ Object.parse packages/mermaid/src/mermaidAPI.ts:120:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { hash: { text: '->>-', token: '->>-', line: '1', loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 }, expected: [ '\'ACTIVE_PARTICIPANT\'' ] } }
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when parsing a sequenceDiagram > should handle actor one line notation activation: packages/mermaid/src/diagrams/sequence/sequenceDb.ts#L163
Error: Trying to inactivate an inactive participant ([object Object]) ❯ addSignal packages/mermaid/src/diagrams/sequence/sequenceDb.ts:163:21 ❯ apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:521:9 ❯ packages/mermaid/src/diagrams/sequence/sequenceDb.ts:483:7 ❯ apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:482:11 ❯ packages/mermaid/src/diagrams/sequence/sequenceDb.ts:483:7 ❯ Object.apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:482:11 ❯ Object.anonymous packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:87:5 ❯ Parser.parse packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:435:36 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { hash: { text: '->>-', token: '->>-', line: '1', loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 }, expected: [ '\'ACTIVE_PARTICIPANT\'' ] } }
packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js > when parsing a sequenceDiagram > should handle stacked activations: packages/mermaid/src/diagrams/sequence/sequenceDb.ts#L163
Error: Trying to inactivate an inactive participant ([object Object]) ❯ addSignal packages/mermaid/src/diagrams/sequence/sequenceDb.ts:163:21 ❯ apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:521:9 ❯ packages/mermaid/src/diagrams/sequence/sequenceDb.ts:483:7 ❯ apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:482:11 ❯ packages/mermaid/src/diagrams/sequence/sequenceDb.ts:483:7 ❯ Object.apply packages/mermaid/src/diagrams/sequence/sequenceDb.ts:482:11 ❯ Object.anonymous packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:87:5 ❯ Parser.parse packages/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison:435:36 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { hash: { text: '->>-', token: '->>-', line: '1', loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 }, expected: [ '\'ACTIVE_PARTICIPANT\'' ] } }
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/.