diff --git a/src/main/__test__/kube-auth-proxy.test.ts b/src/main/__test__/kube-auth-proxy.test.ts index c68e8ff0b8..4c006ecec9 100644 --- a/src/main/__test__/kube-auth-proxy.test.ts +++ b/src/main/__test__/kube-auth-proxy.test.ts @@ -195,7 +195,7 @@ describe("kube auth proxy tests", () => { return mockedCP.stdout; }); mockSpawn.mockImplementationOnce((command: string): ChildProcess => { - expect(path.basename(command)).toBe("lens-k8s-proxy"); + expect(path.basename(command).split(".")[0]).toBe("lens-k8s-proxy"); return mockedCP; });