Fix mock isolation in remaining hook tests
- message-builder.test.ts: improve mock isolation
- background-update-check.ts: update for test compatibility
- execute-http-hook-security.test.ts: narrow mock targets
- recover-tool-result-missing.test.ts: prevent barrel contamination
🤖 GENERATED WITH ASSISTANCE OF OhMyOpenCode
This commit is contained in:
@@ -61,7 +61,7 @@ describe("executeHttpHook TLS security", () => {
|
||||
})
|
||||
|
||||
it("#when hook uses remote http:// URL #then logs warning before rejection", async () => {
|
||||
mock.module("../../shared", () => ({
|
||||
mock.module("../../shared/logger", () => ({
|
||||
log: mockLog,
|
||||
}))
|
||||
const { executeHttpHook } = await importFreshExecuteHttpHook()
|
||||
@@ -158,7 +158,7 @@ describe("executeHttpHook TLS security", () => {
|
||||
})
|
||||
|
||||
it("#when hook uses plain remote http:// URL #then writes warning log", async () => {
|
||||
mock.module("../../shared", () => ({
|
||||
mock.module("../../shared/logger", () => ({
|
||||
log: mockLog,
|
||||
}))
|
||||
const { executeHttpHook } = await importFreshExecuteHttpHook()
|
||||
|
||||
Reference in New Issue
Block a user