MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / gitStatusRuns

Function gitStatusRuns

__tests__/git-status-subdir-project.test.ts:43–47  ·  view source on GitHub ↗

The `git status` runs made since the last clear, as [cwd, args].

()

Source from the content-addressed store, hash-verified

41
42/** The `git status` runs made since the last clear, as [cwd, args]. */
43function gitStatusRuns(): Array<[string, string[]]> {
44 return vi.mocked(cp.execFileSync).mock.calls
45 .filter(([cmd, args]) => cmd === 'git' && Array.isArray(args) && args[0] === 'status')
46 .map(([, args, opts]) => [String((opts as { cwd?: string } | undefined)?.cwd ?? ''), args as string[]]);
47}
48
49describe('a project in a folder below its repository root (#1636)', () => {
50 let repo: string;

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected