Set up unit testing infrastructure #39

Closed
opened 2026-03-18 01:40:28 +00:00 by ghost · 0 comments
ghost commented 2026-03-18 01:40:28 +00:00 (Migrated from github.com)

Summary

The repo has Vitest configured but zero test files exist. We need proper testing infrastructure before features accumulate without coverage.

Tasks

  • Install @testing-library/react and @testing-library/jest-dom in apps/web
  • Set up test database fixture (test docker-compose or in-memory setup) for apps/api
  • Write initial unit tests for existing API route handlers
  • Write initial component tests for existing web pages
  • Remove passWithNoTests: true from vitest configs once tests exist
  • Configure coverage thresholds in vitest config
  • Update CI test job to include database service if needed for integration tests

Context

Tests should be written alongside features going forward. This issue covers bootstrapping the test infrastructure and writing initial tests for existing code.

## Summary The repo has Vitest configured but zero test files exist. We need proper testing infrastructure before features accumulate without coverage. ## Tasks - [ ] Install `@testing-library/react` and `@testing-library/jest-dom` in `apps/web` - [ ] Set up test database fixture (test docker-compose or in-memory setup) for `apps/api` - [ ] Write initial unit tests for existing API route handlers - [ ] Write initial component tests for existing web pages - [ ] Remove `passWithNoTests: true` from vitest configs once tests exist - [ ] Configure coverage thresholds in vitest config - [ ] Update CI `test` job to include database service if needed for integration tests ## Context Tests should be written alongside features going forward. This issue covers bootstrapping the test infrastructure and writing initial tests for existing code.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: groombook/app#39