test: add route tests for signup, recover, health
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 12m35s

This commit is contained in:
Hoid 2026-02-26 16:05:05 +00:00
parent c01e88686a
commit 1fe3f3746a
6 changed files with 554 additions and 0 deletions

View file

@ -76,6 +76,9 @@ vi.mock("../services/verification.js", () => ({
loadVerifications: vi.fn().mockResolvedValue(undefined),
createPendingVerification: vi.fn().mockResolvedValue({ email: "test@test.com", code: "123456" }),
verifyCode: vi.fn().mockResolvedValue({ status: "ok" }),
isEmailVerified: vi.fn().mockResolvedValue(false),
createVerification: vi.fn().mockResolvedValue({ email: "test@test.com", token: "tok", apiKey: "key", createdAt: "", verifiedAt: null }),
getVerifiedApiKey: vi.fn().mockResolvedValue(null),
}));
// Mock email service