MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / createTestPrompter

Function createTestPrompter

src/cli/commands/__tests__/setup.test.ts:99–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99function createTestPrompter(): Prompter {
100 return {
101 selectOne: async <T>(opts: { options: Array<{ value: T }> }) => {
102 const preferredOption = opts.options.find((option) => option.value != null);
103 return (preferredOption ?? opts.options[0]).value;
104 },
105 selectMany: async <T>(opts: { options: Array<{ value: T }> }) =>
106 opts.options.map((option) => option.value),
107 confirm: async (opts: { defaultValue: boolean }) => opts.defaultValue,
108 };
109}
110
111function createPlatformPrompter(platforms: string[]): Prompter {
112 let selectManyCalls = 0;

Callers 1

setup.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected