mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
convert deep imports to top level imports (#112199)
This commit is contained in:
parent
97db889bb1
commit
ce2aac3763
8 changed files with 16 additions and 13 deletions
9
src/plugins/data/common/mocks.ts
Normal file
9
src/plugins/data/common/mocks.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export * from './index_patterns/fields/fields.mocks';
|
|
@ -16,7 +16,7 @@ import { ExceptionBuilder } from '../../../../shared_imports';
|
|||
import { useAsync } from '@kbn/securitysolution-hook-utils';
|
||||
import { getExceptionListSchemaMock } from '../../../../../../lists/common/schemas/response/exception_list_schema.mock';
|
||||
import { useFetchIndex } from '../../../containers/source';
|
||||
import { stubIndexPattern } from 'src/plugins/data/common/index_patterns/index_pattern.stub';
|
||||
import { stubIndexPattern } from 'src/plugins/data/common/stubs';
|
||||
import { useAddOrUpdateException } from '../use_add_exception';
|
||||
import { useFetchOrCreateRuleExceptionList } from '../use_fetch_or_create_rule_exception_list';
|
||||
import { useSignalIndex } from '../../../../detections/containers/detection_engine/alerts/use_signal_index';
|
||||
|
|
|
@ -39,7 +39,7 @@ import {
|
|||
import { getExceptionListItemSchemaMock } from '../../../../../lists/common/schemas/response/exception_list_item_schema.mock';
|
||||
import { getEntryMatchMock } from '../../../../../lists/common/schemas/types/entry_match.mock';
|
||||
import { getCommentsArrayMock } from '../../../../../lists/common/schemas/types/comment.mock';
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/index_patterns/fields/fields.mocks';
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/mocks';
|
||||
import { ENTRIES, OLD_DATE_RELATIVE_TO_DATE_NOW } from '../../../../../lists/common/constants.mock';
|
||||
import { CodeSignature } from '../../../../common/ecs/file';
|
||||
import { IndexPatternBase } from '@kbn/es-query';
|
||||
|
|
|
@ -10,10 +10,7 @@ import React from 'react';
|
|||
import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui';
|
||||
|
||||
import { EntryItem } from './entry_item';
|
||||
import {
|
||||
fields,
|
||||
getField,
|
||||
} from '../../../../../../../src/plugins/data/common/index_patterns/fields/fields.mocks';
|
||||
import { fields, getField } from '../../../../../../../src/plugins/data/common/mocks';
|
||||
import { IndexPattern } from 'src/plugins/data/public';
|
||||
|
||||
jest.mock('../../../common/lib/kibana');
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
fields,
|
||||
getField,
|
||||
} from '../../../../../../../src/plugins/data/common/index_patterns/fields/fields.mocks';
|
||||
import { fields, getField } from '../../../../../../../src/plugins/data/common/mocks';
|
||||
import { Entry, EmptyEntry, ThreatMapEntries, FormattedEntry } from './types';
|
||||
import { FieldSpec, IndexPattern } from '../../../../../../../src/plugins/data/common';
|
||||
import moment from 'moment-timezone';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { ThemeProvider } from 'styled-components';
|
|||
import { mount } from 'enzyme';
|
||||
import { waitFor } from '@testing-library/react';
|
||||
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/index_patterns/fields/fields.mocks';
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/mocks';
|
||||
|
||||
import { useKibana } from '../../../common/lib/kibana';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { ThemeProvider } from 'styled-components';
|
|||
import { mount } from 'enzyme';
|
||||
|
||||
import { useKibana } from '../../../common/lib/kibana';
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/index_patterns/fields/fields.mocks';
|
||||
import { fields } from '../../../../../../../src/plugins/data/common/mocks';
|
||||
|
||||
import { ListItemComponent } from './list_item';
|
||||
import { ThreatMapEntries } from './types';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { mount, shallow } from 'enzyme';
|
|||
import { ThemeProvider } from 'styled-components';
|
||||
import { act } from '@testing-library/react';
|
||||
|
||||
import { stubIndexPattern } from 'src/plugins/data/common/index_patterns/index_pattern.stub';
|
||||
import { stubIndexPattern } from 'src/plugins/data/common/stubs';
|
||||
import { StepAboutRule } from '.';
|
||||
import { useFetchIndex } from '../../../../common/containers/source';
|
||||
import { mockAboutStepRule } from '../../../pages/detection_engine/rules/all/__mocks__/mock';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue