starbasedb
starbasedb copied to clipboard
test: cover auth template entrypoint
Summary
- Adds focused Vitest coverage for
templates/auth/src/index.ts. - Covers the unnamed fetch 404, auth route dispatch to signup/login/logout, unsupported route 405, logout session invalidation SQL, and
isSessionValidtrue/false paths. - Keeps this slice non-overlapping with #182, which covers auth utils and email signup/login handler behavior.
Refs #71 /claim #71
Tests
COREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm vitest --run templates/auth/src/index.test.ts-> 7 tests passedCOREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm prettier --check templates/auth/src/index.test.ts-> passedgit diff --check-> passed
Transparency: AI-assisted with Codex; I reviewed the diff and kept the PR scoped to auth-template entrypoint coverage.