We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cddc7b4 commit fb23bf2Copy full SHA for fb23bf2
.storybook/main.ts
@@ -18,10 +18,10 @@ const config: StorybookConfig = {
18
// Inherit project aliases
19
resolve: {
20
alias: {
21
- // Mock version module for stable visual testing in Storybook
22
- // MUST be before @ alias to take precedence
23
- "@/version": path.join(process.cwd(), ".storybook/mocks/version.ts"),
24
"@": path.join(process.cwd(), "src"),
+ // Override version.ts with mock for stable visual testing
+ // Use absolute path with $ to ensure exact match
+ "@/version$": path.resolve(process.cwd(), ".storybook/mocks/version.ts"),
25
},
26
27
});
0 commit comments