Files
metabuilder/postgres/vitest.config.mts
johndoe6345789 a51130a127 feat: Add external low-code and postgres repositories
- codegen: Low-code React app with JSON-driven component system
- packagerepo: Schema-driven package repository with backend/frontend
- postgres: Next.js app with Drizzle ORM and PostgreSQL

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 16:48:52 +00:00

44 lines
1.1 KiB
TypeScript

import react from '@vitejs/plugin-react';
import { playwright } from '@vitest/browser-playwright';
import { loadEnv } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
coverage: {
include: ['src/**/*'],
exclude: ['src/**/*.stories.{js,jsx,ts,tsx}'],
},
projects: [
{
extends: true,
test: {
name: 'unit',
include: ['src/**/*.test.{js,ts}'],
exclude: ['src/hooks/**/*.test.ts'],
environment: 'node',
},
},
{
extends: true,
test: {
name: 'ui',
include: ['**/*.test.tsx', 'src/hooks/**/*.test.ts'],
browser: {
enabled: true,
headless: true,
provider: playwright(),
screenshotDirectory: 'vitest-test-results',
instances: [
{ browser: 'chromium' },
],
},
},
},
],
env: loadEnv('', process.cwd(), ''),
},
});