Add frontend testing infrastructure with Vitest (#14)

This commit is contained in:
Mondo Diaz
2026-01-07 14:01:37 -06:00
parent 961f6ff6b4
commit b9b4334393
6 changed files with 5054 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
@@ -9,5 +10,11 @@ export default defineConfig({
'/health': 'http://localhost:8080',
'/project': 'http://localhost:8080',
}
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: true,
}
})