- 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/src (1 of 2 files). Show all
Unified · Split
| @@ -151,8 +151,10 @@ describe("TerminalManager", () => { · 150 unmodified lines | ||
| 151 | 151 | ptyAdapter, |
| 152 | 152 | historyLineLimit, |
| 153 | 153 | shellResolver: options.shellResolver ?? (() => "/bin/bash"), |
| 154 | − subprocessChecker: options.subprocessChecker, | |
| 155 | − subprocessPollIntervalMs: options.subprocessPollIntervalMs, | |
| 154 | + ...(options.subprocessChecker ? { subprocessChecker: options.subprocessChecker } : {}), | |
| 155 | + ...(options.subprocessPollIntervalMs | |
| 156 | + ? { subprocessPollIntervalMs: options.subprocessPollIntervalMs } | |
| 157 | + : {}), | |
| 156 | 158 | }); |
| 157 | 159 | return { logsDir, ptyAdapter, manager }; |
| 158 | 160 | } |