Commit Graph

17 Commits

Author SHA1 Message Date
Marcel Ribeiro-Dantas 30b3e6213f
fix(typos): Fix minor typos in the source code
Signed-off-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io>
2023-10-07 22:16:11 -03:00
Sidharth Vinod 38123d2f21
fix: #4818 support `getClasses` in external diagrams. 2023-09-07 12:01:22 +05:30
Reda Al Sulais 980a5ac8b5 create `ParserDefinition` type 2023-08-10 22:26:04 +03:00
Remco Haszing e84c5ec4c9
Fix broken tests 2023-04-13 15:13:52 +02:00
Remco Haszing fc80ba66d2
Fix import extensions 2023-03-11 15:27:16 +01:00
Remco Haszing b7d31adda4
Support node16 module resolution
The `node16` module resolution requires imports to use the `.js` file
extension in type definitions.

`@rollup/plugin-typescript` is needed to make this work with the Vite
setup used by Mermaid.

The module option for Mermaid internally is set to `nodenext`. This is
needed to support `.json` imports. Note that setting `module` to
`node16` or `nodenext` implies a matching `moduleResolution` value.
2023-03-11 14:54:21 +01:00
Sidharth Vinod 1ab3ed1a1a
chore: Add vitest imports 2023-02-28 16:58:41 +05:30
Sidharth Vinod 1981f12976
chore: Fix snapshots 2023-02-28 16:58:04 +05:30
Sidharth Vinod 1e5d9ae1f4
fix(#4140): Remove direct usage of mermaidAPI.render 2023-02-24 12:15:55 +05:30
Sidharth Vinod c9c4320f89
fix unit tests 2023-02-20 00:14:39 +05:30
Sidharth Vinod 4ea7294eeb
fix(#3406, #3394): Remove init & initThrowsErrors
New run function added as replacement.
2023-02-19 16:10:08 +05:30
Sidharth Vinod d2927435ab
Fix tests 2023-02-19 13:09:31 +05:30
Sidharth Vinod d22e8d92c6
chore: Remove all non async render/parse/init 2023-02-19 01:10:15 +05:30
Sidharth Vinod a83f88bdf1
chore: Merge master to develop 2022-11-10 13:51:53 +05:30
Alois Klink c420224080 test: remove `import {it} from "vitest"`
We're getting a lot of vitest errors that say:
```Error: No test suite found in file```

I think this is because vitest is somehow
importing a different version the it/test function than the globally
inserted functions.

Removing the imports fixes this.
2022-10-06 00:48:50 +01:00
Knut Sveidqvist ebdec77c88 #3061 Fixing unit tests 2022-09-26 08:47:41 +02:00
Knut Sveidqvist 8dd82839cb Relocation of files 2022-09-21 11:03:33 +02:00
Renamed from src/mermaid.spec.ts (Browse further)