(args, options)
| 8 | const bin = require.resolve("./cli.js"); |
| 9 | |
| 10 | const cli = (args, options) => { |
| 11 | return (input = "") => { |
| 12 | const result = x(bin, args, { |
| 13 | nodeOptions: { |
| 14 | cwd: options.cwd, |
| 15 | env: options.env, |
| 16 | }, |
| 17 | }); |
| 18 | |
| 19 | result.process.stdin.write(input); |
| 20 | result.process.stdin.end(); |
| 21 | |
| 22 | return result; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | test("should print warning if stage is empty", async () => { |
| 27 | const cwd = await git.bootstrap(); |