feat: add testing library dependencies and implement component tests

This commit is contained in:
Loic Coenen
2026-06-23 16:42:49 +02:00
committed by Loic Coenen (aider)
parent 826069e8dd
commit 46168a70a8
10 changed files with 859 additions and 14 deletions

View File

@@ -1,7 +1,13 @@
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/setupTests.ts",
},
});