Skip to content

Commit

Permalink
Unmock '@folio/stripes-react-hotkeys' for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna committed Oct 29, 2024
1 parent 84a875a commit 3370933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <span>Child element</span>;
Expand Down

0 comments on commit 3370933

Please sign in to comment.