diff --git a/src/main/__test__/kube-auth-proxy.test.ts b/src/main/__test__/kube-auth-proxy.test.ts index 16cebb813a..9737c3925d 100644 --- a/src/main/__test__/kube-auth-proxy.test.ts +++ b/src/main/__test__/kube-auth-proxy.test.ts @@ -41,8 +41,8 @@ import { broadcastMessage } from "../../common/ipc"; import type { ChildProcess } from "child_process"; import { spawn } from "child_process"; import { Kubectl } from "../kubectl/kubectl"; -import type { MockProxy } from "jest-mock-extended"; -import { mock } from "jest-mock-extended"; +import type { DeepMockProxy } from "jest-mock-extended"; +import { mockDeep, mock } from "jest-mock-extended"; import { waitUntilUsed } from "tcp-port-used"; import type { Readable } from "stream"; import { EventEmitter } from "stream"; @@ -140,12 +140,12 @@ describe("kube auth proxy tests", () => { }); describe("spawn tests", () => { - let mockedCP: MockProxy; + let mockedCP: DeepMockProxy; let listeners: EventEmitter; let proxy: KubeAuthProxy; beforeEach(async () => { - mockedCP = mock(); + mockedCP = mockDeep(); listeners = new EventEmitter(); const stderr = mockedCP.stderr = mock(); const stdout = mockedCP.stdout = mock();