Skip to content

Commit fb23bf2

Browse files
committed
🤖 Try exact match for version alias
1 parent cddc7b4 commit fb23bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.storybook/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const config: StorybookConfig = {
1818
// Inherit project aliases
1919
resolve: {
2020
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"),
2421
"@": path.join(process.cwd(), "src"),
22+
// Override version.ts with mock for stable visual testing
23+
// Use absolute path with $ to ensure exact match
24+
"@/version$": path.resolve(process.cwd(), ".storybook/mocks/version.ts"),
2525
},
2626
},
2727
});

0 commit comments

Comments
 (0)