service test placeholders

This commit is contained in:
2026-01-22 10:21:54 +01:00
parent b0ad702165
commit b04604ae60
61 changed files with 3667 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# Auth Service Tests
## Directory Structure
This directory contains test placeholder files for services in `apps/website/app/auth`.
## Note
There are **no service files** in `apps/website/app/auth`. The directory only contains:
- Page components (e.g., `login/page.tsx`, `signup/page.tsx`)
- Layout files (e.g., `layout.tsx`)
## Actual Auth Services
The actual auth services are located in:
- `apps/website/lib/services/auth/AuthService.ts`
- `apps/website/lib/services/auth/SessionService.ts`
- `apps/website/lib/services/auth/AuthPageService.ts`
These services already have test implementations in:
- `apps/website/lib/services/auth/AuthService.test.ts`
- `apps/website/lib/services/auth/SessionService.test.ts`
## Test Coverage
The existing tests cover:
- **Happy paths**: Successful signup, login, logout, and session retrieval
- **Failure modes**: Error handling when API calls fail
- **Retries**: Not applicable for these services (no retry logic)
- **Fallback logic**: Not applicable for these services
- **Aggregation logic**: Not applicable for these services
- **Decision branches**: Different outcomes based on API response (success vs failure)
## Future Services
If service files are added to `apps/website/app/auth` in the future, corresponding test placeholder files should be created here following the pattern:
- Service file: `apps/website/app/auth/services/SomeService.ts`
- Test file: `apps/website/tests/services/auth/SomeService.test.ts`