From 02f08637b2f9a92ca6267fefc9ed4581b47ec254 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 21 Feb 2025 11:14:08 -0500 Subject: [PATCH 01/28] More vue type error suppression. --- client/src/components/FilesDialog/FilesDialog.test.ts | 2 +- .../History/Archiving/HistoryArchiveExportSelector.test.ts | 2 +- .../components/History/Archiving/HistoryArchiveWizard.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/FilesDialog/FilesDialog.test.ts b/client/src/components/FilesDialog/FilesDialog.test.ts index 8a04439e7f47..73c6c42908d6 100644 --- a/client/src/components/FilesDialog/FilesDialog.test.ts +++ b/client/src/components/FilesDialog/FilesDialog.test.ts @@ -107,7 +107,7 @@ const initComponent = async (props: { multiple: boolean; mode?: string }) => { ); const testingPinia = createTestingPinia({ stubActions: false }); - const wrapper = mount(FilesDialog, { + const wrapper = mount(FilesDialog as object, { localVue, propsData: { ...props, modalStatic: true }, pinia: testingPinia, diff --git a/client/src/components/History/Archiving/HistoryArchiveExportSelector.test.ts b/client/src/components/History/Archiving/HistoryArchiveExportSelector.test.ts index 0ad5de646db3..6043683f3726 100644 --- a/client/src/components/History/Archiving/HistoryArchiveExportSelector.test.ts +++ b/client/src/components/History/Archiving/HistoryArchiveExportSelector.test.ts @@ -29,7 +29,7 @@ const ARCHIVE_HISTORY_BTN = "#archive-history-btn"; const CONFIRM_DELETE_CHECKBOX = "[type='checkbox']"; async function mountComponentWithHistory(history: HistorySummary) { - const wrapper = shallowMount(HistoryArchiveExportSelector, { + const wrapper = shallowMount(HistoryArchiveExportSelector as object, { propsData: { history }, localVue, stubs: { diff --git a/client/src/components/History/Archiving/HistoryArchiveWizard.test.ts b/client/src/components/History/Archiving/HistoryArchiveWizard.test.ts index 2d1d05adc527..cf4c0c120fa0 100644 --- a/client/src/components/History/Archiving/HistoryArchiveWizard.test.ts +++ b/client/src/components/History/Archiving/HistoryArchiveWizard.test.ts @@ -45,7 +45,7 @@ async function mountComponentWithHistory(history?: HistorySummary) { // this is a work-around jest.spyOn(historyStore, "getHistoryById").mockImplementation((_history_id: string) => history as HistorySummary); - const wrapper = shallowMount(HistoryArchiveWizard, { + const wrapper = shallowMount(HistoryArchiveWizard as object, { propsData: { historyId: TEST_HISTORY_ID }, localVue, pinia, From 376c0e9cc6ce47b9279ad84d4870eb79eb52f337 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 21 Feb 2025 11:21:46 -0500 Subject: [PATCH 02/28] Prod typing to believe in itself in GenericElement. --- .../components/History/Content/GenericElement.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/client/src/components/History/Content/GenericElement.vue b/client/src/components/History/Content/GenericElement.vue index 8643be275e0e..eba50da36acf 100644 --- a/client/src/components/History/Content/GenericElement.vue +++ b/client/src/components/History/Content/GenericElement.vue @@ -1,23 +1,27 @@