Skip to content

Commit d7a5d3d

Browse files
Merge branch '7.x' into backport/7.x/pr-80132
2 parents 6dd427c + d16d005 commit d7a5d3d

File tree

157 files changed

+7056
-913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+7056
-913
lines changed

packages/kbn-optimizer/limits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pageLoadAssetSize:
6868
searchprofiler: 67224
6969
security: 189428
7070
securityOss: 30806
71-
securitySolution: 622387
71+
securitySolution: 283440
7272
share: 99205
7373
snapshotRestore: 79176
7474
spaces: 389643

packages/kbn-storybook/lib/default_config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@
2020
import { StorybookConfig } from '@storybook/core/types';
2121

2222
export const defaultConfig: StorybookConfig = {
23-
addons: [
24-
'@kbn/storybook/preset',
25-
'@storybook/addon-a11y',
26-
'@storybook/addon-knobs',
27-
'@storybook/addon-essentials',
28-
],
23+
addons: ['@kbn/storybook/preset', '@storybook/addon-a11y', '@storybook/addon-essentials'],
2924
stories: ['../**/*.stories.tsx'],
3025
typescript: {
3126
reactDocgen: false,

src/core/public/apm_system.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
jest.mock('@elastic/apm-rum');
2121
import { init, apm } from '@elastic/apm-rum';
22+
import { DeeplyMockedKeys } from '../typings';
2223
import { ApmSystem } from './apm_system';
2324

2425
const initMock = init as jest.Mocked<typeof init>;

src/core/public/chrome/chrome_service.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import { BehaviorSubject } from 'rxjs';
2020
import type { PublicMethodsOf } from '@kbn/utility-types';
21+
import { DeeplyMockedKeys } from '../../typings';
2122
import { ChromeBadge, ChromeBrand, ChromeBreadcrumb, ChromeService, InternalChromeStart } from './';
2223

2324
const createStartContractMock = () => {

src/core/public/notifications/notifications_service.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919
import type { PublicMethodsOf } from '@kbn/utility-types';
20+
import { MockedKeys } from '../../typings';
2021
import {
2122
NotificationsService,
2223
NotificationsSetup,

src/core/public/overlays/overlay_service.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919
import type { PublicMethodsOf } from '@kbn/utility-types';
20+
import { DeeplyMockedKeys } from '../../typings';
2021
import { OverlayService, OverlayStart } from './overlay_service';
2122
import { overlayBannersServiceMock } from './banners/banners_service.mock';
2223
import { overlayFlyoutServiceMock } from './flyout/flyout_service.mock';

src/core/server/core_context.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
import { REPO_ROOT } from '@kbn/dev-utils';
21+
import { DeeplyMockedKeys } from '../typings';
2122
import { CoreContext } from './core_context';
2223
import { Env, IConfigService } from './config';
2324
import { configServiceMock, getEnvOptions } from './config/mocks';

src/core/server/elasticsearch/client/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import { Client, ApiResponse } from '@elastic/elasticsearch';
2020
import { TransportRequestPromise } from '@elastic/elasticsearch/lib/Transport';
21+
import { DeeplyMockedKeys } from '../../../typings';
2122
import { ElasticsearchClient } from './types';
2223
import { ICustomClusterClient } from './cluster_client';
2324

src/core/server/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import { of } from 'rxjs';
2020
import { duration } from 'moment';
2121
import { ByteSizeValue } from '@kbn/config-schema';
22+
import { MockedKeys } from '../typings';
2223
import { PluginInitializerContext, CoreSetup, CoreStart, StartServicesAccessor } from '.';
2324
import { loggingSystemMock } from './logging/logging_system.mock';
2425
import { loggingServiceMock } from './logging/logging_service.mock';

src/core/typings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* under the License.
1818
*/
1919

20-
type DeeplyMockedKeys<T> = {
20+
export type DeeplyMockedKeys<T> = {
2121
[P in keyof T]: T[P] extends (...args: any[]) => any
2222
? jest.MockInstance<ReturnType<T[P]>, Parameters<T[P]>>
2323
: DeeplyMockedKeys<T[P]>;
2424
} &
2525
T;
2626

27-
type MockedKeys<T> = { [P in keyof T]: jest.Mocked<T[P]> };
27+
export type MockedKeys<T> = { [P in keyof T]: jest.Mocked<T[P]> };

0 commit comments

Comments
 (0)