Skip to content

Commit

Permalink
Fix mock import
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Mar 14, 2022
1 parent 8db770a commit ce437a4
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,9 @@ import moment from 'moment';
import '../../../../../lib/__mocks__/use_composite_image.mock';
import { mockRef } from '../../../../../lib/__mocks__/screenshot_ref.mock';

mockReduxHooks();

jest.mock('../../../../../../../observability/public', () => {
const originalModule = jest.requireActual('../../../../../../../observability/public');
jest.mock('../../../../../../../observability/public');

return {
...originalModule,
useFetcher: jest.fn().mockReturnValue({ data: null, status: 'pending' }),
};
});
mockReduxHooks();

describe('Ping Timestamp component', () => {
let checkGroup: string;
Expand Down

0 comments on commit ce437a4

Please sign in to comment.