From 381f363c1d35103f98fbfa96badc618bd2b60a15 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 19 Nov 2024 16:07:53 -0500 Subject: [PATCH] Remove extra logging from watchHistory.test.js --- client/src/store/historyStore/model/watchHistory.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/store/historyStore/model/watchHistory.test.js b/client/src/store/historyStore/model/watchHistory.test.js index 6669c0200e5e..dafd0700fc95 100644 --- a/client/src/store/historyStore/model/watchHistory.test.js +++ b/client/src/store/historyStore/model/watchHistory.test.js @@ -4,6 +4,7 @@ import MockAdapter from "axios-mock-adapter"; import { createPinia, mapState } from "pinia"; import { useHistoryItemsStore } from "stores/historyItemsStore"; import { useHistoryStore } from "stores/historyStore"; +import { suppressDebugConsole } from "tests/jest/helpers"; import { watchHistoryOnce } from "./watchHistory"; @@ -77,6 +78,8 @@ describe("watchHistory", () => { }); it("survives a failing request", async () => { + suppressDebugConsole(); // we log that 500, totally expected, do not include it in test output + // Setup a failing request, then update history content axiosMock .onGet(`/history/current_history_json`) @@ -92,7 +95,6 @@ describe("watchHistory", () => { try { await watchHistoryOnce(); } catch (error) { - console.log(error); expect(error.message).toContain("500"); } // Need to reset axios mock here. Smells like a bug,