Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
lgestc committed May 30, 2024
1 parent 1b23b53 commit 626527d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import { cloneDeep } from 'lodash';
import { initialSourcererState, SourcererScopeName } from '../store/model';
import { Sourcerer } from '.';
import { sourcererActions, sourcererModel } from '../store';
import { createMockStore, mockGlobalState, TestProviders } from '../../mock';
import { createMockStore, mockGlobalState, TestProviders } from '../../common/mock';
import { useSourcererDataView } from '../containers';
import { useSignalHelpers } from '../containers/use_signal_helpers';
import { TimelineId } from '../../../../common/types/timeline';
import { TimelineType } from '../../../../common/api/timeline';
import { sortWithExcludesAtEnd } from '../../../../common/utils/sourcerer';
import { TimelineId } from '../../../common/types/timeline';
import { TimelineType } from '../../../common/api/timeline';
import { sortWithExcludesAtEnd } from '../../../common/utils/sourcerer';
import { render, fireEvent, screen, waitFor } from '@testing-library/react';

const mockDispatch = jest.fn();
Expand Down Expand Up @@ -48,8 +48,8 @@ jest.mock('@kbn/react-kibana-mount', () => {
});

const mockUpdateUrlParam = jest.fn();
jest.mock('../../utils/global_query_string', () => {
const original = jest.requireActual('../../utils/global_query_string');
jest.mock('../../common/utils/global_query_string', () => {
const original = jest.requireActual('../../common/utils/global_query_string');

return {
...original,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { SourcererScopeName } from '../store/model';
import { Sourcerer } from '.';
import { useSignalHelpers } from '../containers/use_signal_helpers';
import { sourcererActions, sourcererModel } from '../store';
import { createMockStore, mockGlobalState, TestProviders } from '../../mock';
import { sortWithExcludesAtEnd } from '../../../../common/utils/sourcerer';
import { createMockStore, mockGlobalState, TestProviders } from '../../common/mock';
import { sortWithExcludesAtEnd } from '../../../common/utils/sourcerer';
import { useSourcererDataView } from '../containers';

const mockDispatch = jest.fn();
Expand Down Expand Up @@ -44,8 +44,8 @@ jest.mock('@kbn/react-kibana-mount', () => {
});

const mockUpdateUrlParam = jest.fn();
jest.mock('../../utils/global_query_string', () => {
const original = jest.requireActual('../../utils/global_query_string');
jest.mock('../../common/utils/global_query_string', () => {
const original = jest.requireActual('../../common/utils/global_query_string');

return {
...original,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import React from 'react';
import { createMockStore, mockGlobalState, TestProviders } from '../../common/mock';
import { act, renderHook } from '@testing-library/react-hooks';
import { useSignalHelpers } from './use_signal_helpers';
import type { State } from '../store';
import type { State } from '../../common/store';
import { createSourcererDataView } from './create_sourcerer_data_view';

const mockCreateSourcererDataView = jest.fn(() => {
Expand Down

0 comments on commit 626527d

Please sign in to comment.