(mode: string, input: string)
| 24 | const fixture = join(__dirname, "fixtures", "node-terminal.ts") |
| 25 | |
| 26 | const runFixture = (mode: string, input: string) => |
| 27 | spawnSync(process.execPath, [fixture, mode], { |
| 28 | encoding: "utf8", |
| 29 | input, |
| 30 | // Includes Node startup and loading the fixture imports under CI worker load. |
| 31 | timeout: 10_000 |
| 32 | }) |
| 33 | |
| 34 | const assertResult = (mode: string, input: string, expected: string) => { |
| 35 | const result = runFixture(mode, input) |