huskies: merge 1120 story Silence intentional-error stderr in frontend tests so failures stand out

This commit is contained in:
dave
2026-05-17 19:12:58 +00:00
parent 08780475d0
commit e2ea1af4c8
4 changed files with 19 additions and 0 deletions
@@ -472,9 +472,16 @@ describe("Slash command handling (Story 374)", () => {
});
describe("Story 1058: WebSocket errors do not appear in chat", () => {
let consoleSpy: ReturnType<typeof vi.spyOn>;
beforeEach(() => {
capturedWsHandlers = null;
setupMocks();
consoleSpy = vi.spyOn(console, "error").mockImplementation(() => {});
});
afterEach(() => {
consoleSpy.mockRestore();
});
it("does not add a chat message when onError is called", async () => {