From 9575984b5fd7ed5dd5e772cefdcfa221274f3430 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 26 Nov 2024 12:55:17 -0500 Subject: [PATCH] For jest tests - do not use Worker for tool search. Really cleans up the errors in the console for these tests. --- .../Panels/Common/ToolSearch.test.js | 1 + .../components/Panels/Common/ToolSearch.vue | 120 ++++++++++++++++-- client/src/components/Panels/ToolBox.vue | 2 + .../src/components/Panels/ToolPanel.test.ts | 1 + client/src/components/Panels/ToolPanel.vue | 2 + 5 files changed, 112 insertions(+), 14 deletions(-) diff --git a/client/src/components/Panels/Common/ToolSearch.test.js b/client/src/components/Panels/Common/ToolSearch.test.js index 652dfe7a6a6f..4f1071ff104e 100644 --- a/client/src/components/Panels/Common/ToolSearch.test.js +++ b/client/src/components/Panels/Common/ToolSearch.test.js @@ -21,6 +21,7 @@ describe("ToolSearch", () => { showAdvanced: false, toolsList: [], currentPanel: {}, + useWorker: false, }, localVue, router, diff --git a/client/src/components/Panels/Common/ToolSearch.vue b/client/src/components/Panels/Common/ToolSearch.vue index 818d6259d875..5834bd7b837d 100644 --- a/client/src/components/Panels/Common/ToolSearch.vue +++ b/client/src/components/Panels/Common/ToolSearch.vue @@ -1,9 +1,11 @@