MCPcopy
hub / github.com/SBoudrias/Inquirer.js / FakePrompt

Class FakePrompt

packages/inquirer/inquirer.test.ts:410–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 it('should parse `message` if passed as a function', async () => {
409 const stubMessage = 'foo';
410 class FakePrompt {
411 constructor(question: QuestionMap['stub']) {
412 expect(question.message).toEqual(stubMessage);
413 }
414
415 run() {
416 return Promise.resolve();
417 }
418
419 close() {}
420 }
421 const localPromptModule = createTestPromptModule();
422 localPromptModule.registerPrompt('stub', FakePrompt);
423

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected