History

Tighten test fixtures for terminal options and event typing

- Pass subprocess test options only when defined in `terminalManager` tests - Narrow web store terminal event fixtures to `started`/`activity` event shapes

Julius Marminge committed 9 months ago

Commit 804572c1 parent ddc4a932 files · +13 −4Browse files

Showing the changes to apps/server/src (1 of 2 files). Show all

Unified · Split

apps/server/src/terminalManager.test.ts+4−2
@@ -151,8 +151,10 @@ describe("TerminalManager", () => { · 150 unmodified lines
151151 ptyAdapter,
152152 historyLineLimit,
153153 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+ : {}),
156158 });
157159 return { logsDir, ptyAdapter, manager };
158160 }