From 3370933316ecc116797ca018eeb1cf2255f5b615 Mon Sep 17 00:00:00 2001 From: Mariia_Aloshyna Date: Tue, 29 Oct 2024 19:09:19 +0200 Subject: [PATCH] Unmock '@folio/stripes-react-hotkeys' for some tests --- .../DetailsKeyShortcutsWrapper.test.js | 1 + .../EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/DetailsKeyShortcutsWrapper/DetailsKeyShortcutsWrapper.test.js b/src/components/DetailsKeyShortcutsWrapper/DetailsKeyShortcutsWrapper.test.js index 8b75caa3e..bec231dd7 100644 --- a/src/components/DetailsKeyShortcutsWrapper/DetailsKeyShortcutsWrapper.test.js +++ b/src/components/DetailsKeyShortcutsWrapper/DetailsKeyShortcutsWrapper.test.js @@ -27,6 +27,7 @@ const history = createMemoryHistory(); history.push = jest.fn(); jest.mock('@folio/stripes/smart-components', () => ({ ...jest.requireActual('@folio/stripes/smart-components') }), { virtual: true }); +jest.unmock('@folio/stripes-react-hotkeys'); const recordIdProp = faker.random.uuid; diff --git a/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js b/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js index 0f4deaa25..f0f57ddb9 100644 --- a/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js +++ b/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js @@ -20,6 +20,7 @@ const { const mockOnSubmitProp = jest.fn(() => Promise.resolve('test value')); jest.mock('@folio/stripes/smart-components', () => ({ ...jest.requireActual('@folio/stripes/smart-components') }), { virtual: true }); +jest.unmock('@folio/stripes-react-hotkeys'); const renderEditKeyShortcutsWrapper = ({ onSubmit }) => { const childElement = Child element;