Files
klz-cables.com/vitest.config.mts
Marc Mintel 70f189b0c9
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Successful in 2m41s
Build & Deploy / 🏗️ Build (push) Failing after 21s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
CI - Lint, Typecheck & Test / quality-assurance (pull_request) Failing after 3m40s
test(e2e): isolate puppeteer from vitest to prevent CI pipeline crash
2026-03-03 14:19:36 +01:00

26 lines
659 B
TypeScript

import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
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'],
},
},
});