From fa845b74417d70f7cdabc0e20c41aae9d12ffde3 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:15:51 -0700 Subject: [PATCH] Fix compile for now --- src/helpers.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.test.ts b/src/helpers.test.ts index da13706..64dec79 100644 --- a/src/helpers.test.ts +++ b/src/helpers.test.ts @@ -416,7 +416,7 @@ describe("getArgs", () => { mockedWhich.sync.mockReturnValue("/path/to/which/pyright"); let callCount = 0; - mockedCp.execFileSync.mockImplementation(() => { + mockedCp.execFileSync.mockImplementation((() => { callCount += 1; switch (callCount) { case 1: @@ -426,7 +426,7 @@ describe("getArgs", () => { default: throw new Error("should not have been called"); } - }); + }) as any); const result = await getArgs(execPath); expect(result).toMatchSnapshot("result");