chore: bump vitest 4.0.18 → 4.1.0, @types/node 25.4.0 → 25.5.0
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 20m36s
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 20m36s
- Fix recover-db-fallback test: remove conflicting vi.unmock before vi.mock (vitest 4.1 changed unmock/mock ordering behavior) - All 705 tests pass, 0 vulnerabilities
This commit is contained in:
parent
ae8b32e1c4
commit
4e0ea6425b
3 changed files with 609 additions and 339 deletions
|
|
@ -2,8 +2,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
|
|||
|
||||
// Unmock keys to use real getAllKeys (but we'll mock it ourselves)
|
||||
vi.unmock("../services/keys.js");
|
||||
vi.unmock("../services/verification.js");
|
||||
vi.unmock("../services/email.js");
|
||||
// verification.js and email.js are mocked below
|
||||
|
||||
vi.mock("../services/db.js", () => ({
|
||||
default: { query: vi.fn(), connect: vi.fn(), on: vi.fn(), end: vi.fn() },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue