Break down #32 into implementable work units — Phase 1: Infrastructure: install vitest, jsdom, @testing-library/react/react-dom/jest-dom; add test config to vite.config.ts; create __tests__/setup.ts with jsdom config and matcher extensions #36

Closed
opened 2026-05-21 18:34:09 +00:00 by Mark · 1 comment
Owner

Phase 1: Infrastructure: install vitest, jsdom, @testing-library/react/react-dom/jest-dom; add test config to vite.config.ts; create tests/setup.ts with jsdom config and matcher extensions

Files: app/package.json, app/vite.config.ts, app/src/tests/setup.ts


Decomposed from redlens#34

## Phase 1: Infrastructure: install vitest, jsdom, @testing-library/react/react-dom/jest-dom; add test config to vite.config.ts; create __tests__/setup.ts with jsdom config and matcher extensions **Files:** app/package.json, app/vite.config.ts, app/src/__tests__/setup.ts --- _Decomposed from [redlens#34](https://forgejo.tail018ac4.ts.net/Mark/redlens/issues/34)_
Mark 2026-05-22 00:17:40 +00:00
  • closed this issue
  • added the
    quickfix
    label
Author
Owner

All Phase 1 infrastructure was already in place — no code changes needed:

  • package.json: vitest@^3.2.0, jsdom@^26.0.0, @testing-library/react@^16.3.2, @testing-library/jest-dom@^6.9.1, @testing-library/dom@^10.4.1, @vitest/ui@^3.2.0 all installed
  • vite.config.ts: test config with globals: true, environment: "jsdom", setupFiles: ["./src/__tests__/setup.ts"], css: true
  • setup.ts: imports @testing-library/jest-dom/vitest for matcher extensions

Verification: vitest run passes all 61 test files / 349 tests.

All Phase 1 infrastructure was already in place — no code changes needed: - **package.json**: vitest@^3.2.0, jsdom@^26.0.0, @testing-library/react@^16.3.2, @testing-library/jest-dom@^6.9.1, @testing-library/dom@^10.4.1, @vitest/ui@^3.2.0 all installed - **vite.config.ts**: test config with `globals: true`, `environment: "jsdom"`, `setupFiles: ["./src/__tests__/setup.ts"]`, `css: true` - **setup.ts**: imports `@testing-library/jest-dom/vitest` for matcher extensions Verification: `vitest run` passes all 61 test files / 349 tests.
Sign in to join this conversation.
No description provided.