diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.test.tsx index ed74b502add11..1e853bf3461dc 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp/ping_timestamp.test.tsx @@ -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;