restaurant-admin-web/docs/runbooks/testing.md
2026-03-31 17:43:46 -06:00

25 lines
590 B
Markdown

# Testing Runbook
## Install
```bash
npm install
```
## Execute Tests
```bash
npm run test:ci
```
## Coverage Scope
- `src/api/client.test.ts`: runtime-config precedence and fallback behavior.
- `src/api/dashboardApi.test.ts`: config, recent-change, and service-window endpoint mapping.
- `src/auth/oidcLogin.test.ts`: OIDC start-url generation and safe return-url fallback.
- `src/App.test.tsx`: central login screen, protected admin snapshot flow, service-window workflow, and reauthentication guidance.
## Notes
- Use containerized Node execution when host `npm` is unavailable.