(
args: (string | undefined)[],
name: string,
expectedValue: string
)
| 125 | } |
| 126 | |
| 127 | function assertArgumentValue( |
| 128 | args: (string | undefined)[], |
| 129 | name: string, |
| 130 | expectedValue: string |
| 131 | ): void { |
| 132 | const index = args.indexOf(name); |
| 133 | expect( |
| 134 | index, |
| 135 | `Expected argument '${name}' was not present. Args: ${args.join(" ")}` |
| 136 | ).toBeGreaterThanOrEqual(0); |
| 137 | expect(index + 1).toBeLessThan(args.length); |
| 138 | expect(args[index + 1]).toBe(expectedValue); |
| 139 | } |
| 140 | |
| 141 | describe("Client options", async () => { |
| 142 | const { copilotClient: defaultClient, env, workDir } = await createSdkTestContext(); |
no test coverage detected
searching dependent graphs…