Invokes the build command handler.
(stdin: ReleasePrecheckJsonStdin)
| 58 | |
| 59 | /** Invokes the build command handler. */ |
| 60 | async function invokePrecheck(stdin: ReleasePrecheckJsonStdin) { |
| 61 | const fakeStdin = Readable.from(Buffer.from(JSON.stringify(stdin))); |
| 62 | |
| 63 | updateStdinGetter(fakeStdin); |
| 64 | |
| 65 | await ReleasePrecheckCommandModule.handler({$0: '', _: []}); |
| 66 | } |
| 67 | |
| 68 | it('should invoke configured pre-check function', async () => { |
| 69 | await invokePrecheck({ |
no test coverage detected