From 1699d2bf679e336cc89ccab5bb8ef7e1101e721d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 16 Feb 2026 23:10:11 +0900 Subject: test(frontend): add Vitest test infrastructure and sample tests Set up Vitest with @testing-library/react and jsdom for frontend unit testing. Add sample tests for config.ts and BorderedContainer. Co-Authored-By: Claude Opus 4.6 --- frontend/vitest.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 frontend/vitest.config.ts (limited to 'frontend/vitest.config.ts') diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts new file mode 100644 index 0000000..ab1f2c3 --- /dev/null +++ b/frontend/vitest.config.ts @@ -0,0 +1,10 @@ +import react from "@vitejs/plugin-react"; +import tsconfigPaths from "vite-tsconfig-paths"; +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + plugins: [react(), tsconfigPaths()], + test: { + include: ["app/**/*.test.{ts,tsx}"], + }, +}); -- cgit v1.3.1