Skip to content

Commit

Permalink
Fix imports in mocks file
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Mar 2, 2020
1 parent 352c7ee commit 7972d4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/public/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
*/
import { createMemoryHistory } from 'history';

// Only import types from '.' to avoid triggering default Jest mocks.
import { CoreContext, PluginInitializerContext, AppMountParameters } from '.';
// Import values from their individual modules instead.
import { ScopedHistory } from './application';

import { applicationServiceMock } from './application/application_service.mock';
import { chromeServiceMock } from './chrome/chrome_service.mock';
import { CoreContext, PluginInitializerContext, AppMountParameters, ScopedHistory } from '.';
import { docLinksServiceMock } from './doc_links/doc_links_service.mock';
import { fatalErrorsServiceMock } from './fatal_errors/fatal_errors_service.mock';
import { httpServiceMock } from './http/http_service.mock';
Expand Down

0 comments on commit 7972d4f

Please sign in to comment.