Function
captureHelp
(cmd: ReturnType<typeof createTestCommand>)
Source from the content-addressed store, hash-verified
| 223 | // ------------------------------------------------------------------------- |
| 224 | |
| 225 | function captureHelp(cmd: ReturnType<typeof createTestCommand>): string { |
| 226 | let out = ''; |
| 227 | cmd.configureOutput({ |
| 228 | writeOut: (str: string) => { |
| 229 | out += str; |
| 230 | }, |
| 231 | }); |
| 232 | cmd.outputHelp(); |
| 233 | return out; |
| 234 | } |
| 235 | |
| 236 | it('M3.3: test run --help includes GLOBAL_OPTS_HINT', () => { |
| 237 | const test = createTestCommand(); |
Tested by
no test coverage detected