Prepares for Plan 03 unit tests (MustacheEditor, NotificationBell, wizard step validation). jsdom environment + jest-dom matchers + canary test verifies the wiring.
15 lines
355 B
TypeScript
15 lines
355 B
TypeScript
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'],
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
exclude: ['src/test/e2e/**', 'node_modules/**'],
|
|
css: true,
|
|
},
|
|
});
|