(minimumCount = 1)
| 15 | } = 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.each([ |
| 30 | ["stdio", () => RuntimeConnection.forStdio({ path: process.env.COPILOT_CLI_PATH })], |
no test coverage detected
searching dependent graphs…