diff --git a/ui/tsconfig.json b/ui/tsconfig.json index ce9024e..852d704 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -20,6 +20,9 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, + /* Test runtime types */ + "types": ["node", "vitest/globals", "@testing-library/jest-dom"], + /* Path mapping */ "baseUrl": ".", "paths": { diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 66c0597..2c4fe3f 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -1,9 +1,15 @@ +/// import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + test: { + globals: true, + environment: 'jsdom', + setupFiles: ['./src/test/setup.ts'], + }, server: { port: 3000, proxy: {