Initialize frontend.

This commit is contained in:
Drew 2025-09-22 01:12:44 -07:00
parent 75ad3c2182
commit c2c1d1c8ed
25 changed files with 8397 additions and 4 deletions

39
frontend/vitest.config.ts Normal file
View file

@ -0,0 +1,39 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: 'jsdom',
setupFiles: ['./test-setup.ts'],
globals: true,
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'test-setup.ts',
'**/*.d.ts',
'build/',
'.react-router/',
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
include: ['app/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
'node_modules/',
'build/',
'.react-router/',
'public/',
],
},
})