| 123456789101112131415161718192021 |
- import { fileURLToPath, URL } from 'node:url'
- import vue from '@vitejs/plugin-vue'
- import { defineConfig } from 'vitest/config'
- export default defineConfig({
- plugins: [vue()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src/client', import.meta.url)),
- '@shared': fileURLToPath(new URL('./src/shared', import.meta.url)),
- },
- },
- test: {
- environment: 'jsdom',
- setupFiles: ['./tests/setup.ts'],
- include: ['tests/**/*.test.ts'],
- coverage: {
- reporter: ['text', 'html'],
- },
- },
- })
|