()
| 26 | } |
| 27 | |
| 28 | async function getPromptMocks(): Promise<{ |
| 29 | input: ReturnType<typeof vi.fn>; |
| 30 | confirm: ReturnType<typeof vi.fn>; |
| 31 | }> { |
| 32 | const prompts = await import('@inquirer/prompts'); |
| 33 | return { |
| 34 | input: prompts.input as unknown as ReturnType<typeof vi.fn>, |
| 35 | confirm: prompts.confirm as unknown as ReturnType<typeof vi.fn>, |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Git lifecycle behavior of store setup, register, and doctor: the |