From 755defc1e38b429450033dd42d1ba9d7faac079b Mon Sep 17 00:00:00 2001 From: Dmytro Melnyshyn Date: Mon, 25 Nov 2024 15:37:37 +0200 Subject: [PATCH] mock withRouter --- src/QuickMarcEditor/QuickMarcEditor.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QuickMarcEditor/QuickMarcEditor.test.js b/src/QuickMarcEditor/QuickMarcEditor.test.js index 214a7d81..a9bba2a3 100644 --- a/src/QuickMarcEditor/QuickMarcEditor.test.js +++ b/src/QuickMarcEditor/QuickMarcEditor.test.js @@ -28,6 +28,7 @@ import { bibLeader } from '../../test/jest/fixtures/leaders'; jest.mock('react-router', () => ({ ...jest.requireActual('react-router'), useLocation: jest.fn(), + withRouter: Component => props => , })); jest.mock('../queries', () => ({