From ad0c9d43228997ee5016745172dc78471a87a64c Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 19 Nov 2024 13:09:47 -0500 Subject: [PATCH] This really stablizes these tests - they sort of runaway without this. --- client/src/components/History/HistoryView.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/History/HistoryView.test.js b/client/src/components/History/HistoryView.test.js index 85dc95106ede..b00e2647f7a9 100644 --- a/client/src/components/History/HistoryView.test.js +++ b/client/src/components/History/HistoryView.test.js @@ -17,6 +17,11 @@ jest.mock("stores/services/history.services"); const { server, http } = useServerMock(); +jest.mock("vue-router/composables", () => ({ + useRoute: jest.fn(() => ({})), + useRouter: jest.fn(() => ({})), +})); + function create_history(historyId, userId, purged = false, archived = false) { const historyName = `${userId}'s History ${historyId}`; return {