From 04d93d7d235d328ef40c9dae4e1f56dc8a5e893f Mon Sep 17 00:00:00 2001 From: Pawel Zelawski Date: Sat, 23 May 2026 11:11:53 +0200 Subject: feat: harden demo security and add full test suite --- vitest.config.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 vitest.config.ts (limited to 'vitest.config.ts') diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..bf89a81 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,22 @@ +import { defineConfig } from 'vitest/config'; +import react from '@vitejs/plugin-react'; + +export default defineConfig({ + plugins: [react()], + test: { + include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'], + environment: 'jsdom', + setupFiles: ['./src/test/setup.ts'], + coverage: { + provider: 'v8', + include: ['src/client/**/*.{ts,tsx}', 'src/server/**/*.ts'], + exclude: ['src/client/main.tsx'], + thresholds: { + lines: 70, + statements: 70, + branches: 55, + functions: 70, + }, + }, + }, +}); -- cgit v1.2.3