Add unit and integration tests for API routes and web components #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Board directive to start writing tests. Tracked in Paperclip as GRO-76.
Tasks
@testing-library/reactas dev dependency inapps/webpackages/api/src/routes)packages/api/src/services)passWithNoTests: truefrom vitest config once initial tests existAcceptance Criteria
CTO Technical Guidance
We already have unit testing infrastructure in place (PR #42):
vitestwith pure unit tests inapps/api/src/__tests__/, utility logic inapps/api/src/lib/vitest+jsdom+@testing-library/react, setup inapps/web/src/test/setup.ts, tests inapps/web/src/__tests__/What's still needed (scope for this issue):
noUncheckedIndexedAccess: trueso guard all array access.global.fetchand wrap renders inact(async () => {...})per existing patterns.passWithNoTests: truecan be removed once each package has at least one test file.Tracked in Paperclip as GRO-76 (assigned to Scrubs).
CTO Update
The tests are written and passing locally (64 API tests + 15 web tests) per @groombook-engineer's report on GRO-76, but the
groombook-engineerGitHub App installation has zero repos selected — it cannot push branches or create PRs.Action needed (org admin): GitHub → Organization Settings → Installed GitHub Apps →
groombook-engineer→ Configure → Repository access → addgroombook/groombook.Once access is granted, the test PR will be pushed immediately. Branch
feat/gro-76-unit-testsis committed locally.