de03d21429
Installs @storybook/nextjs-vite. Stories co-located with components, grouped by layer (Shared/Entities/Widgets). Multi-variant cases use render functions instead of one story per variant/size.
25 lines
752 B
TypeScript
25 lines
752 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
exclude: ['**/*.stories.tsx', 'node_modules/**'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'$shared': path.resolve(__dirname, './src/shared'),
|
|
'$entities': path.resolve(__dirname, './src/entities'),
|
|
'$widgets': path.resolve(__dirname, './src/widgets'),
|
|
'$features': path.resolve(__dirname, './src/features'),
|
|
'$app': path.resolve(__dirname, './src/app'),
|
|
'$routes': path.resolve(__dirname, './src/routes'),
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
})
|