mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
b7d31adda4
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.
11 lines
339 B
JavaScript
11 lines
339 B
JavaScript
import { urlSnapshotTest } from '../../helpers/util.js';
|
|
|
|
describe('mermaid', () => {
|
|
describe('registerDiagram', () => {
|
|
it('should work on @mermaid-js/mermaid-example-diagram', () => {
|
|
const url = 'http://localhost:9000/external-diagrams-example-diagram.html';
|
|
urlSnapshotTest(url, {}, false, false);
|
|
});
|
|
});
|
|
});
|