fix(e2e): stream Parallels fresh logs

This commit is contained in:
Vincent Koc
2026-06-01 08:49:03 +02:00
parent 68bfacae03
commit 8fdb1d0f55
2 changed files with 18 additions and 8 deletions

View File

@@ -77,6 +77,19 @@ describe("parallels npm update smoke", () => {
expect(updateBlock).not.toContain("log += text");
});
it("streams fresh lane logs instead of retaining them in memory", () => {
const script = readFileSync(SCRIPT_PATH, "utf8");
const spawnLoggedBlock = script.slice(
script.indexOf(" private spawnLogged"),
script.indexOf(" private async monitorJobs"),
);
expect(spawnLoggedBlock).toContain('writeFileSync(logPath, "", "utf8")');
expect(spawnLoggedBlock).toContain("appendFileSync(logPath, text");
expect(spawnLoggedBlock).not.toContain("let log");
expect(spawnLoggedBlock).not.toContain("log += text");
});
it("runs Windows updates through a detached done-file runner", () => {
const script = readFileSync(SCRIPT_PATH, "utf8");
const transports = readFileSync(GUEST_TRANSPORTS_PATH, "utf8");