Skip to content

Commit

Permalink
Mock @folio/stripes-react-hotkeys to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Oct 29, 2024
1 parent 332ee65 commit ca5dbd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/jest/__mock__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ import './resizeObserver.mock';
import './stripesConfig.mock';
import './stripesCore.mock';
import './stripesIcon.mock';
import './stripesReactHotkeys.mock';
import './stripesSmartComponents.mock';
4 changes: 4 additions & 0 deletions test/jest/__mock__/stripesReactHotkeys.mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jest.mock('@folio/stripes-react-hotkeys', () => ({
...jest.requireActual('@folio/stripes-react-hotkeys'),
HotKeys: ({ children }) => <div>{children}</div>,
}));

0 comments on commit ca5dbd7

Please sign in to comment.