| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected