(file: string, args: string[], expectedArgs: string[])
| 46 | } |
| 47 | |
| 48 | function isCoderCommand(file: string, args: string[], expectedArgs: string[]): boolean { |
| 49 | return ( |
| 50 | file === "coder" && |
| 51 | args.length === expectedArgs.length && |
| 52 | args.every((arg, i) => arg === expectedArgs[i]) |
| 53 | ); |
| 54 | } |
| 55 | |
| 56 | function mockVersionAndWhoami(options: { version: string; username?: string }): void { |
| 57 | execAsyncSpy?.mockImplementationOnce(() => |
no outgoing calls
no test coverage detected