MCPcopy
hub / github.com/di-sukharev/opencommit / assertGitStatus

Function assertGitStatus

test/e2e/utils.ts:347–358  ·  view source on GitHub ↗
(
  gitDir: string,
  expected: string | RegExp
)

Source from the content-addressed store, hash-verified

345};
346
347export 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
360export const startMockOpenAiServer = async (
361 response:

Callers 1

Calls 1

getShortGitStatusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…