storybook/docs/_snippets/vitest-plugin-vitest-config-alias.md
Kyle Gach 6fb17c9ab9 Docs updates for Storybook Test
- Focused tests
- Coverage
- A11y
- Remove `test.include` & `test.isolate` from example Vitest configs
- Streamline Test addon introduction
- Address feedback from EAP
2024-12-11 23:30:25 -07:00

599 B

import { mergeConfig } from 'vite';

export default {
  // ...
  viteFinal: async (viteConfig) => {
    return mergeConfig(viteConfig, {
      resolve: {
        alias: {
          '@components': '/src/components',
          // ...
        },
      },
    });
  },
};
import { defineConfig } from 'vitest/config';

export default defineConfig({
  // ...
  resolve: {
    alias: {
      '@components': '/src/components',
      // ...
    },
  },
});