MCPcopy Index your code
hub / github.com/code-pushup/cli / withPrompts

Function withPrompts

packages/create-cli/src/lib/setup/wizard.unit.test.ts:169–175  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

167 it('should log a heading for each plugin with prompts', async () => {
168 vol.fromJSON({ 'tsconfig.json': '{}' }, MEMFS_VOLUME);
169 const withPrompts = (title: string) =>
170 createBinding({
171 title,
172 prompts: async () => [
173 { key: 'x', message: 'X:', type: 'input', default: '' },
174 ],
175 });
176
177 await runSetupWizard(
178 [withPrompts('Alpha'), createBinding(), withPrompts('Beta')],

Callers 1

Calls 1

createBindingFunction · 0.85

Tested by

no test coverage detected