The `git status` runs made since the last clear, as [cwd, args].
()
| 41 | |
| 42 | /** The `git status` runs made since the last clear, as [cwd, args]. */ |
| 43 | function 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 | |
| 49 | describe('a project in a folder below its repository root (#1636)', () => { |
| 50 | let repo: string; |
no test coverage detected