Add test suite

This commit is contained in:
Alex Gleason committed 2025-05-27 23:10:17 +02:00
1 parent 4254b9eb0b
commit d14652559e
8 files changed
+1292 -9

No files matched your search

+8 -2
View File
@@ -1,7 +1,8 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "node:path";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig(() => ({
server: {
@@ -9,6 +10,11 @@ export default defineConfig(() => ({
port: 8080,
},
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),