MCPcopy
hub / github.com/Fission-AI/OpenSpec / getPromptMocks

Function getPromptMocks

test/commands/store-git.test.ts:28–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28async 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

Callers 1

store-git.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected