thalos-web/docs/runbooks/testing.md
2026-03-11 10:25:38 -06:00

550 B

Testing Runbook

Install

npm install

Execute Tests

npm run test:ci

Coverage Scope

  • src/api/client.test.ts: runtime-config precedence and fallback behavior.
  • src/api/dashboardApi.test.ts: endpoint path/query composition and payload mapping.
  • src/auth/oidcLogin.test.ts: return-url sanitization and allowlist behavior.
  • src/App.test.tsx: central login render, safe return-url fallback, and authenticated session workflow.

Notes

  • Use containerized Node execution when host npm is unavailable.