(exec: Kaos['exec'], overrides: Partial<Kaos> = {})
| 77 | // Kaos with `exec` scripted and `stat` reporting a directory — the baseline |
| 78 | // for tests that run the GlobTool to completion. |
| 79 | function kaosWithExec(exec: Kaos['exec'], overrides: Partial<Kaos> = {}) { |
| 80 | return createFakeKaos({ exec, stat: vi.fn().mockResolvedValue(dirStat()), ...overrides }); |
| 81 | } |
| 82 | |
| 83 | function execArgs(exec: ReturnType<typeof vi.fn>): string[] { |
| 84 | return exec.mock.calls[0] as string[]; |
no test coverage detected