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
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-02-12 22:20:01 -08:00
1 parent ddc4a93c36
commit 804572c8ff
2 files changed
+13 -4

No files matched your search

+4 -2
View File
@@ -151,8 +151,10 @@ describe("TerminalManager", () => {
ptyAdapter,
historyLineLimit,
shellResolver: options.shellResolver ?? (() => "/bin/bash"),
subprocessChecker: options.subprocessChecker,
subprocessPollIntervalMs: options.subprocessPollIntervalMs,
...(options.subprocessChecker ? { subprocessChecker: options.subprocessChecker } : {}),
...(options.subprocessPollIntervalMs
? { subprocessPollIntervalMs: options.subprocessPollIntervalMs }
: {}),
});
return { logsDir, ptyAdapter, manager };
}