import vue from '@vitejs/plugin-vue'; import path from 'path'; import { mergeConfig } from 'vite'; import { defineConfig } from 'vitest/config'; export default mergeConfig( defineConfig({ plugins: [vue()], test: { globals: true, environment: 'jsdom', onConsoleLog: (log, type) => { if (type === 'stderr' && log.includes('Could not parse CSS stylesheet')) return false; }, coverage: { provider: 'istanbul', reporter: ['text', 'json', 'html'] }, setupFiles: [path.resolve(__dirname, './config.setup.js')], include: [path.resolve(__dirname, '../../**/*.spec.js')] } }) );