Skip to content

Commit 8452c3d

Browse files
committed
🤖 Use real mermaid in Storybook for visual inspection
Remove mermaid stub alias so diagrams render with actual mermaid.js. This allows visual verification of the error handling fixes. The stub is still updated with parse() method for test environments that use VITE_DISABLE_MERMAID=1. Generated with `cmux`
1 parent 46057af commit 8452c3d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.storybook/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ const config: StorybookConfig = {
1919
resolve: {
2020
alias: {
2121
"@": path.join(process.cwd(), "src"),
22-
// Use mermaid stub for Storybook to avoid initialization issues
23-
"mermaid": path.join(process.cwd(), "src/mocks/mermaidStub.ts"),
2422
// Note: VERSION mocking for stable visual testing is handled by overwriting
2523
// src/version.ts in the Chromatic CI workflow, not via alias here
2624
},

0 commit comments

Comments
 (0)