Add Vitest + React Testing Library setup for viewer-frontend
CI / skip-ci-check (pull_request) Successful in 5s
CI / docker-ci (pull_request) Successful in 6s
CI / secret-scan (pull_request) Successful in 11s
CI / e2e (pull_request) Successful in 28s

Establishes frontend unit testing infra (jsdom env, RTL, jest-dom
matchers, common Radix/jsdom polyfills) and seeds it with tests for
lib/utils.ts, lib/photo-utils.ts, hooks/useFocusTrap.ts, and
ThemeToggle.tsx (46 tests total).
This commit is contained in:
2026-07-14 18:35:30 -04:00
parent 05b908241d
commit 975d0c809d
10 changed files with 2303 additions and 30 deletions
+1
View File
@@ -13,6 +13,7 @@
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true,
"types": ["vitest/globals", "@testing-library/jest-dom"],
"plugins": [
{
"name": "next"