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

- 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:
OpenClaw Subagent 2026-03-12 20:15:29 +01:00
parent ae8b32e1c4
commit 4e0ea6425b
3 changed files with 609 additions and 339 deletions

939
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -29,17 +29,17 @@
"devDependencies": {
"@types/compression": "^1.8.1",
"@types/express": "^5.0.6",
"@types/node": "^25.4.0",
"@types/node": "^25.5.0",
"@types/nodemailer": "^7.0.11",
"@types/pg": "^8.18.0",
"@types/supertest": "^7.2.0",
"@types/swagger-jsdoc": "^6.0.4",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/coverage-v8": "^4.1.0",
"supertest": "^7.2.2",
"terser": "^5.46.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
"vitest": "^4.1.0"
},
"type": "module"
}

View file

@ -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() },