diff --git a/__mocks__/railroadRenderer.js b/__mocks__/railroadRenderer.js new file mode 100644 index 0000000000..cf0c9dcfac --- /dev/null +++ b/__mocks__/railroadRenderer.js @@ -0,0 +1,13 @@ +/** + * Mocked Railroad diagram renderer + */ + +import { vi } from 'vitest'; + +export const draw = vi.fn().mockImplementation(() => { + return ''; +}); + +export default { + draw, +}; diff --git a/cypress/integration/rendering/railroad.spec.ts b/cypress/integration/rendering/railroad.spec.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demos/dev/example.html b/demos/dev/example.html index 27d31e177a..9f274db012 100644 --- a/demos/dev/example.html +++ b/demos/dev/example.html @@ -21,6 +21,8 @@
+graph TB a --> b @@ -30,11 +32,13 @@
infodiff --git a/demos/index.html b/demos/index.html index 61a86a2aa0..1cac82c30e 100644 --- a/demos/index.html +++ b/demos/index.html @@ -7,7 +7,6 @@ @@ -88,6 +87,9 @@