diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-16 23:10:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-16 23:14:10 +0900 |
| commit | 1699d2bf679e336cc89ccab5bb8ef7e1101e721d (patch) | |
| tree | db31556771736e4aa178d9c4aba19c135b62d8d0 /frontend/vitest.config.ts | |
| parent | efe05c1444963c046ab91bf54fa51a794bda58c0 (diff) | |
| download | phperkaigi-2026-albatross-1699d2bf679e336cc89ccab5bb8ef7e1101e721d.tar.gz phperkaigi-2026-albatross-1699d2bf679e336cc89ccab5bb8ef7e1101e721d.tar.zst phperkaigi-2026-albatross-1699d2bf679e336cc89ccab5bb8ef7e1101e721d.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'frontend/vitest.config.ts')
| -rw-r--r-- | frontend/vitest.config.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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}"], + }, +}); |
