diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/api_logs_table.test.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/api_logs_table.test.tsx index 66141a8b654f6b..99fce81ca348f9 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/api_logs_table.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/components/api_logs_table.test.tsx @@ -10,7 +10,7 @@ import { setMockValues, setMockActions, mountWithIntl } from '../../../../__mock // NOTE: We're mocking FormattedRelative here because it (currently) has // console warn issues, and it allows us to skip mocking dates jest.mock('@kbn/i18n/react', () => ({ - ...jest.requireActual('@kbn/i18n/react'), + ...(jest.requireActual('@kbn/i18n/react') as object), FormattedRelative: jest.fn(() => '20 hours ago'), }));