Skip to content

Commit

Permalink
Fix compile for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 10, 2024
1 parent d7583ac commit fa845b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ describe("getArgs", () => {
mockedWhich.sync.mockReturnValue("/path/to/which/pyright");

let callCount = 0;
mockedCp.execFileSync.mockImplementation(() => {
mockedCp.execFileSync.mockImplementation((() => {

Check failure on line 419 in src/helpers.test.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unsafe argument of type `any` assigned to a parameter of type `{ (file: string): Buffer; (file: string, options: ExecFileSyncOptionsWithStringEncoding): string; (file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; (file: string, options?: ExecFileSyncOptions | undefined): string | Buffer; (file: string, args: readonly string[]): Buffer; (file: string, args: r...`
callCount += 1;
switch (callCount) {
case 1:
Expand All @@ -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");
Expand Down

0 comments on commit fa845b7

Please # to comment.