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:
YeonGyu-Kim
2026-04-04 16:48:12 +09:00
parent 733b54865f
commit a6e783adc4
@@ -27,7 +27,9 @@ describe("executeHttpHook TLS security", () => {
afterEach(() => {
globalThis.fetch = originalFetch
process.env = originalEnv
process.env = { ...originalEnv }
mockLog.mockReset()
mockFetch.mockReset()
mock.restore()
})