Skip to content

Commit

Permalink
Mock @folio/stripes-react-hotkeys to fix tests (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam authored Oct 29, 2024
1 parent 332ee65 commit a05ef6c
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 a05ef6c

Please sign in to comment.