ui-nyla/vitest.config.ts
ValueOn AG 7eb305f910
Some checks failed
Deploy Nyla Frontend to Integration / deploy (push) Failing after 56s
cp adapted to 2026 poweron
2026-06-09 09:53:38 +02:00

26 lines
727 B
TypeScript

// Copyright (c) 2026 PowerOn AG
// All rights reserved.
//
// Vitest config for frontend unit + component tests.
// Lives next to vite.config.ts; reuses the @vitejs/plugin-react setup.
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts'],
css: true,
include: ['src/**/*.test.{ts,tsx}'],
exclude: ['node_modules', 'dist', '.git'],
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
include: ['src/**/*.{ts,tsx}'],
exclude: ['src/**/*.test.{ts,tsx}', 'src/test/**', 'src/main.tsx'],
},
},
});