Files
metabuilder/config/vitest.config.ts
johndoe6345789 a339ce9a8c feat: Complete documentation organization and folder restructuring
- Successfully organized all MetaBuilder documentation into a clear, hierarchical structure.
- Created new navigation files including a master index and a new contributor path.
- Updated existing documentation files to reflect the new structure.
- Reduced root-level clutter by organizing configuration files into dedicated directories.
- Added new configuration files for ESLint, Next.js, Playwright, and Vite.
- Created example schemas and size limits reports for better project insights.
- Removed deprecated Vite config backups to streamline the project.
2025-12-25 13:21:11 +00:00

39 lines
815 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react-swc'
import path from 'path'
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: [],
include: [
'src/**/*.test.ts',
'src/**/*.test.tsx',
'packages/**/tests/**/*.test.ts',
'packages/**/tests/**/*.test.tsx'
],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: [
'src/**/*.ts',
'src/**/*.tsx',
'packages/**/seed/**/*.json'
],
exclude: [
'src/**/*.test.ts',
'src/**/*.test.tsx',
'src/main.tsx',
'src/vite-env.d.ts'
]
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})