Skip to content

Commit

Permalink
feat: ✅ add in testing
Browse files Browse the repository at this point in the history
Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
  • Loading branch information
iamnewton committed Oct 17, 2024
1 parent d431135 commit acb5856
Show file tree
Hide file tree
Showing 14 changed files with 3,190 additions and 217 deletions.
13 changes: 13 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type StorybookConfig } from "@storybook/react-vite";
import * as path from "path";

const config: StorybookConfig = {
addons: [
Expand All @@ -20,5 +21,17 @@ const config: StorybookConfig = {
"../src/**/*.mdx",
"../src/**/*.story.@(js|jsx|mjs|ts|tsx)",
],
// @TODO: abstract out to shared vite.config.ts
async viteFinal (config, options) {
const { mergeConfig } = await import('vite');
return mergeConfig(config, {
resolve: {
alias: {
'@': path.resolve(__dirname, '../src'), // Adjust the path based on your project structure
},
},
});
},
};

export default config;
Loading

0 comments on commit acb5856

Please sign in to comment.