summaryrefslogtreecommitdiff
path: root/vitest.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vitest.config.ts')
-rw-r--r--vitest.config.ts22
1 files changed, 22 insertions, 0 deletions
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,
+ },
+ },
+ },
+});