Files
e-tib.com/vitest.config.mts
Marc Mintel b8c21ca4b3
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 55s
Build & Deploy / 🧪 QA (push) Successful in 1m16s
Build & Deploy / 🏗️ Build (push) Successful in 2m39s
Build & Deploy / 🚀 Deploy (push) Successful in 26s
Build & Deploy / 🔔 Notify (push) Successful in 3s
fix(test): remove isolate false to fix cross-file DOM leakage in CI
2026-07-10 18:23:06 +02:00

26 lines
663 B
TypeScript

import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react-swc';
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': __dirname,
'next/server': 'next/server.js',
},
},
ssr: {
noExternal: ['@mintel/next-utils', 'next-intl'],
},
test: {
environment: 'happy-dom',
globals: true,
exclude: ['**/node_modules/**', '**/.next/**', '**/dist/**', '**/*.e2e.test.ts'],
include: ['**/*.test.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
});