Commit 46057af
committed
🤖 Fix mermaid rendering in Storybook
Add missing parse() method to mermaidStub and configure Storybook
to use the stub to avoid mermaid initialization issues.
The previous PR added a call to mermaid.parse() before rendering,
but the mock stub didn't implement this method, causing Storybook
to fail when rendering mermaid diagrams.
Changes:
- Add parse() method to mermaidStub.ts that returns resolved Promise
- Configure Storybook to use mermaid stub via alias in main.ts
- Ensures mermaid diagrams render correctly in Storybook stories
Generated with `cmux`1 parent 95294c8 commit 46057af
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
0 commit comments