| 123456789101112131415161718192021222324252627282930 |
- import { defineConfig } from 'vitest/config'
- import vue from '@vitejs/plugin-vue'
- import path from 'path'
- export default defineConfig({
- plugins: [vue()],
- test: {
- globals: true,
- environment: 'jsdom',
- setupFiles: ['./tests/setup.ts'],
- include: ['tests/**/*.{test,spec}.{js,ts}'],
- coverage: {
- provider: 'v8',
- reporter: ['text', 'json', 'html'],
- exclude: [
- 'node_modules/**',
- 'tests/**',
- 'dist/**',
- '**/*.d.ts',
- 'vite.config.*'
- ]
- }
- },
- resolve: {
- alias: {
- '@': path.resolve(__dirname, 'src'),
- '#': path.resolve(__dirname, 'src/types')
- }
- }
- })
|