fix(test): improve execute-http-hook-security test isolation
Reset mocks and process.env copy in afterEach to prevent cross-test contamination from mock.module() isolation.
This commit is contained in:
@@ -27,7 +27,9 @@ describe("executeHttpHook TLS security", () => {
|
|||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
globalThis.fetch = originalFetch
|
globalThis.fetch = originalFetch
|
||||||
process.env = originalEnv
|
process.env = { ...originalEnv }
|
||||||
|
mockLog.mockReset()
|
||||||
|
mockFetch.mockReset()
|
||||||
mock.restore()
|
mock.restore()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user