From b93124b352658da0a3e0454a172b2fa5b560674b Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 10 Jun 2022 08:23:45 -0400 Subject: [PATCH] Fix type error Signed-off-by: Sebastian Malton --- src/main/__test__/kube-auth-proxy.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();