huskies: merge 1120 story Silence intentional-error stderr in frontend tests so failures stand out
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user