Skip to content

Commit

Permalink
Mock loadable.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Apr 2, 2024
1 parent 31ba373 commit 9c80c1f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import ObjectBrowserWidget from './ObjectBrowserWidget';
import { MemoryRouter } from 'react-router-dom';

const mockStore = configureStore();

jest.mock('@plone/volto/helpers/Loadable/Loadable');
beforeAll(
async () =>
await require('@plone/volto/helpers/Loadable/Loadable').__setLoadables(),
);

test('renders a objectBrowser widget component', () => {
const store = mockStore({
search: {},
Expand Down

0 comments on commit 9c80c1f

Please sign in to comment.