Skip to content

Commit cddc7b4

Browse files
committed
🤖 Fix version mock alias order
1 parent a31b35c commit cddc7b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ const config: StorybookConfig = {
1818
// Inherit project aliases
1919
resolve: {
2020
alias: {
21-
"@": path.join(process.cwd(), "src"),
2221
// Mock version module for stable visual testing in Storybook
22+
// MUST be before @ alias to take precedence
2323
"@/version": path.join(process.cwd(), ".storybook/mocks/version.ts"),
24+
"@": path.join(process.cwd(), "src"),
2425
},
2526
},
2627
});

0 commit comments

Comments
 (0)