mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: tighten qa matrix tee assertions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user