From 50efe3f55e8461ea45ea7af8470ea06537bcd4f0 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 09:42:08 +0100 Subject: [PATCH] test: tighten qa matrix tee assertions --- .../src/shared/live-transport-cli.runtime.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/qa-matrix/src/shared/live-transport-cli.runtime.test.ts b/extensions/qa-matrix/src/shared/live-transport-cli.runtime.test.ts index 71836c696b6..dab18507bff 100644 --- a/extensions/qa-matrix/src/shared/live-transport-cli.runtime.test.ts +++ b/extensions/qa-matrix/src/shared/live-transport-cli.runtime.test.ts @@ -56,7 +56,14 @@ describe("live transport CLI runtime", () => { outputDir, }); process.stdout.write("stdout marker\n"); - await expect(tee.stop()).rejects.toMatchObject({ code: "EISDIR" }); + let stopError: unknown; + try { + await tee.stop(); + } catch (caught) { + stopError = caught; + } + expect(stopError).toBeInstanceOf(Error); + expect((stopError as NodeJS.ErrnoException).code).toBe("EISDIR"); expect(process.stdout.write).toBe(mutedStdoutWrite); expect(process.stderr.write).toBe(mutedStderrWrite);