(args: string[], options: TestOptions)
| 20 | } |
| 21 | |
| 22 | const cli = (args: string[], options: TestOptions) => { |
| 23 | return (input = "") => { |
| 24 | const result = x(bin, args, { |
| 25 | nodeOptions: { |
| 26 | cwd: options.cwd, |
| 27 | env: options.env, |
| 28 | }, |
| 29 | }); |
| 30 | |
| 31 | result.process?.stdin?.write(input); |
| 32 | result.process?.stdin?.end(); |
| 33 | |
| 34 | return result; |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | const gitBootstrap = (fixture: string) => git.bootstrap(fixture, __dirname); |
| 39 | const fixBootstrap = (fixture: string) => fix.bootstrap(fixture, __dirname); |