( gitDir: string, expected: string | RegExp )
| 345 | }; |
| 346 | |
| 347 | export const assertGitStatus = async ( |
| 348 | gitDir: string, |
| 349 | expected: string | RegExp |
| 350 | ): Promise<void> => { |
| 351 | const status = await getShortGitStatus(gitDir); |
| 352 | if (typeof expected === 'string') { |
| 353 | expect(status).toContain(expected); |
| 354 | return; |
| 355 | } |
| 356 | |
| 357 | expect(status).toMatch(expected); |
| 358 | }; |
| 359 | |
| 360 | export const startMockOpenAiServer = async ( |
| 361 | response: |
no test coverage detected
searching dependent graphs…