feat: adding unit/ui testing support

This commit is contained in:
Dan Ditomaso
2025-02-24 11:45:34 -05:00
parent 864f8075d9
commit 5df409475e
4 changed files with 129 additions and 11 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react';
import { execSync } from 'node:child_process';
import path from 'path';
@@ -26,5 +26,10 @@ export default defineConfig({
},
server: {
port: 3000
},
test: {
environment: 'happy-dom',
globals: true,
include: ['**/*.{test,spec}.{ts,tsx}'],
}
});