test(infra): add postgres and frontend test tooling

Add repeatable PostgreSQL integration tests and configure Vitest, Testing Library, and ESLint.

Refs #11

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 19:54:28 +01:00
parent a4d63015d4
commit 9970b49746
8 changed files with 1865 additions and 26 deletions

13
frontend/vitest.config.ts Normal file
View File

@ -0,0 +1,13 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'node:path'
export default defineConfig({
plugins: [react()],
resolve: { alias: { '@': path.resolve(__dirname, 'src') } },
test: {
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
clearMocks: true,
},
})