- Pass subprocess test options only when defined in `terminalManager` tests - Narrow web store terminal event fixtures to `started`/`activity` event shapes
Showing the changes to apps/server (1 of 2 files). Show all
Unified · Split
| @@ -151,8 +151,10 @@ describe("TerminalManager", () => { · 150 unmodified lines | |||
| 151 | ptyAdapter, | 151 | ptyAdapter, |
| 152 | historyLineLimit, | 152 | historyLineLimit, |
| 153 | shellResolver: options.shellResolver ?? (() => "/bin/bash"), | 153 | shellResolver: options.shellResolver ?? (() => "/bin/bash"), |
| 154 | subprocessChecker: options.subprocessChecker, | 154 | ...(options.subprocessChecker ? { subprocessChecker: options.subprocessChecker } : {}), |
| 155 | subprocessPollIntervalMs: options.subprocessPollIntervalMs, | 155 | ...(options.subprocessPollIntervalMs |
| 156 | ? { subprocessPollIntervalMs: options.subprocessPollIntervalMs } | ||
| 157 | : {}), | ||
| 156 | }); | 158 | }); |
| 157 | return { logsDir, ptyAdapter, manager }; | 159 | return { logsDir, ptyAdapter, manager }; |
| 158 | } | 160 | } |