fix: add proxy-bypass regression + changelog (#31469) (thanks @widingmarcus-cyber)

This commit is contained in:
Peter Steinberger
2026-03-02 13:56:17 +00:00
parent 2bec80cd97
commit 9eb70d2725
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ describe("cdp-proxy-bypass", () => {
expect(agent).toBeInstanceOf(https.Agent);
});
it("returns https.Agent for https://127.0.0.1 URLs", () => {
const agent = getDirectAgentForCdp("https://127.0.0.1:9222/json/version");
expect(agent).toBeInstanceOf(https.Agent);
});
it("returns http.Agent for ws://[::1] URLs", () => {
const agent = getDirectAgentForCdp("ws://[::1]:9222");
expect(agent).toBeInstanceOf(http.Agent);