(minimumCount = 1)
| 15 | const { copilotClient: client, workDir, openAiEndpoint, env } = await createSdkTestContext(); |
| 16 | |
| 17 | async function waitForExchanges(minimumCount = 1) { |
| 18 | await retry( |
| 19 | `capture ${minimumCount} chat completion request(s)`, |
| 20 | async () => { |
| 21 | const exchanges = await openAiEndpoint.getExchanges(); |
| 22 | expect(exchanges.length).toBeGreaterThanOrEqual(minimumCount); |
| 23 | }, |
| 24 | 1_200 |
| 25 | ); |
| 26 | return openAiEndpoint.getExchanges(); |
| 27 | } |
| 28 | |
| 29 | it("should use workingDirectory for tool execution", async () => { |
| 30 | const subDir = join(workDir, "subproject"); |
no test coverage detected
searching dependent graphs…