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/package.json | |
| 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/package.json')
| -rw-r--r-- | frontend/package.json | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/package.json b/frontend/package.json index dfbaa55..62c8547 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,6 +10,7 @@ "check:eslint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", "check:ts": "tsc --noEmit", "dev": "vite", + "test": "vitest run", "openapi-typescript": "openapi-typescript --output ./app/api/schema.d.ts ../openapi/api-server.yaml", "shiki-codegen": "shiki-codegen --langs php,swift --themes github-light --engine javascript ./app/shiki.bundle.ts" }, @@ -33,6 +34,7 @@ "@eslint/js": "^9.39.2", "@tailwindcss/postcss": "^4.1.18", "@tailwindcss/vite": "^4.1.18", + "@testing-library/react": "^16.3.2", "@types/node": "^25.2.3", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", @@ -42,6 +44,7 @@ "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", "globals": "^17.3.0", + "jsdom": "^28.1.0", "openapi-typescript": "^7.13.0", "rollup-plugin-visualizer": "^6.0.5", "shiki-codegen": "^3.22.0", @@ -49,7 +52,8 @@ "typescript": "^5.9.3", "typescript-eslint": "^8.55.0", "vite": "^7.3.1", - "vite-tsconfig-paths": "^6.1.1" + "vite-tsconfig-paths": "^6.1.1", + "vitest": "^4.0.18" }, "engines": { "node": ">=22.0.0" |
