Files
playzer/apps/backend
Jose Selesan 4544911f0e refactor(onboarding): restructure onboarding routes and components
- Removed obsolete onboarding routes: complete, create-complex, index, verify-email, and verify.
- Introduced new setup stepper page for onboarding process.
- Created a multi-step setup component to handle complex creation with validation.
- Added new schemas for complex creation and plan features.
- Implemented detailed steps for complex name, location, plan selection, and court setup.
- Enhanced error handling and user feedback during the onboarding process.
2026-06-02 10:02:28 -03:00
..
2026-05-06 17:03:42 -03:00
2026-04-17 15:23:51 -03:00

To install dependencies:

bun install

To run:

bun run dev

open http://localhost:3000

Tests

Run all backend tests:

bun run test

Test naming convention

  • *.test.ts or *.spec.ts: service-level tests. These run with the shared Prisma preload at test/support/prisma.mock.ts.
  • *.handler.test.ts: handler-level tests. These should mock the service module locally with mock.module(...) and import the handler after the mock is in place.
  • Keep business logic tests focused on the service layer.
  • Use handler tests only to verify request parsing, status mapping, and response shaping.
  • Put shared Prisma mocking helpers in test/support/.