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
939
package-lock.json
generated
939
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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