[8.3] chore(NA): remove @kbn/utility-types/jest subpackage (#133448) (#133571)

* chore(NA): remove @kbn/utility-types/jest subpackage (#133448)

* chore(NA): remove @kbn/utility-types/jest subpackage

* chore(NA): include migration rule for import path

* chore(NA): remove double import

* chore(NA): creating a new package

* chore(NA): remove jest mentions from @kbn/utility-types

* docs(NA): complete new readme file

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* chore(NA): remove expect error comment

* chore(NA): merge and solve problems with merge on latest upstream

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3a6cc6e747)

# Conflicts:
#	src/core/server/core_context.mock.ts
#	src/plugins/data/common/search/search_source/search_source.test.ts

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Tiago Costa 2022-06-03 22:35:40 +01:00 committed by GitHub
parent 3fae9beef9
commit f1e292f62b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 211 additions and 60 deletions

View file

@ -200,6 +200,7 @@
"@kbn/ui-shared-deps-src": "link:bazel-bin/packages/kbn-ui-shared-deps-src",
"@kbn/ui-theme": "link:bazel-bin/packages/kbn-ui-theme",
"@kbn/utility-types": "link:bazel-bin/packages/kbn-utility-types",
"@kbn/utility-types-jest": "link:bazel-bin/packages/kbn-utility-types-jest",
"@kbn/utils": "link:bazel-bin/packages/kbn-utils",
"@loaders.gl/core": "^2.3.1",
"@loaders.gl/json": "^2.3.1",
@ -706,6 +707,7 @@
"@types/kbn__ui-shared-deps-src": "link:bazel-bin/packages/kbn-ui-shared-deps-src/npm_module_types",
"@types/kbn__ui-theme": "link:bazel-bin/packages/kbn-ui-theme/npm_module_types",
"@types/kbn__utility-types": "link:bazel-bin/packages/kbn-utility-types/npm_module_types",
"@types/kbn__utility-types-jest": "link:bazel-bin/packages/kbn-utility-types-jest/npm_module_types",
"@types/kbn__utils": "link:bazel-bin/packages/kbn-utils/npm_module_types",
"@types/license-checker": "15.0.0",
"@types/listr": "^0.14.0",

View file

@ -112,6 +112,7 @@ filegroup(
"//packages/kbn-ui-shared-deps-npm:build",
"//packages/kbn-ui-shared-deps-src:build",
"//packages/kbn-ui-theme:build",
"//packages/kbn-utility-types-jest:build",
"//packages/kbn-utility-types:build",
"//packages/kbn-utils:build",
"//packages/shared-ux/avatar/solution:build",
@ -214,6 +215,7 @@ filegroup(
"//packages/kbn-ui-shared-deps-npm:build_types",
"//packages/kbn-ui-shared-deps-src:build_types",
"//packages/kbn-ui-theme:build_types",
"//packages/kbn-utility-types-jest:build_types",
"//packages/kbn-utility-types:build_types",
"//packages/kbn-utils:build_types",
"//packages/shared-ux/avatar/solution:build_types",

View file

@ -102,6 +102,11 @@ module.exports = {
to: '@kbn/test-jest-helpers',
disallowedMessage: `import from @kbn/test-jest-helpers instead`
},
{
from: '@kbn/utility-types/jest',
to: '@kbn/utility-types-jest',
disallowedMessage: `import from @kbn/utility-types-jest instead`
},
],
],

View file

@ -0,0 +1,95 @@
load("@npm//@bazel/typescript:index.bzl", "ts_config")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-utility-types-jest"
PKG_REQUIRE_NAME = "@kbn/utility-types-jest"
SOURCE_FILES = glob([
"src/index.ts",
])
SRCS = SOURCE_FILES
filegroup(
name = "srcs",
srcs = SRCS,
)
NPM_MODULE_EXTRA_FILES = [
"package.json",
]
RUNTIME_DEPS = []
TYPES_DEPS = [
"@npm//@types/node",
"@npm//@types/jest",
]
jsts_transpiler(
name = "target_node",
srcs = SRCS,
build_pkg_name = package_name(),
)
ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
ts_project(
name = "tsc_types",
args = ['--pretty'],
srcs = SRCS,
deps = TYPES_DEPS,
declaration = True,
emit_declaration_only = True,
out_dir = "target_types",
root_dir = "src",
tsconfig = ":tsconfig",
)
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
pkg_npm(
name = "npm_module",
deps = [
":%s" % PKG_BASE_NAME,
]
)
filegroup(
name = "build",
srcs = [
":npm_module",
],
visibility = ["//visibility:public"],
)
pkg_npm_types(
name = "npm_module_types",
srcs = SRCS,
deps = [":tsc_types"],
package_name = PKG_REQUIRE_NAME,
tsconfig = ":tsconfig",
visibility = ["//visibility:public"],
)
filegroup(
name = "build_types",
srcs = [
":npm_module_types",
],
visibility = ["//visibility:public"],
)

View file

@ -0,0 +1,20 @@
# `@kbn/utility-types-jest`
TypeScript Jest utility types for usage in Kibana.
You can add as much as any other types you think that makes sense to add here.
## Usage
```ts
import type { MockedKeys } from '@kbn/utility-types-jest';
type A = MockedKeys<OTHER_TYPE>;
```
## Reference
- `DeeplyMockedKeys<T>`
- `MockedKeys<T>`

View file

@ -0,0 +1,10 @@
{
"name": "@kbn/utility-types-jest",
"version": "1.0.0",
"private": true,
"license": "SSPL-1.0 OR Elastic License 2.0",
"main": "target_node/index.js",
"kibana": {
"devOnly": false
}
}

View file

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./target_types",
"rootDir": "./src",
"stripInternal": true,
"types": [
"jest",
"node"
]
},
"include": [
"src/**/*",
]
}

View file

@ -6,7 +6,6 @@ PKG_BASE_NAME = "kbn-utility-types"
PKG_REQUIRE_NAME = "@kbn/utility-types"
SOURCE_FILES = glob([
"src/jest/index.ts",
"src/serializable/**",
"src/index.ts"
])
@ -19,9 +18,7 @@ filegroup(
)
NPM_MODULE_EXTRA_FILES = [
"jest/package.json",
"package.json",
"README.md",
]
RUNTIME_DEPS = [
@ -30,8 +27,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"@npm//utility-types",
"@npm//@types/node",
"@npm//@types/jest",
"@npm//@types/node"
]
jsts_transpiler(
@ -65,7 +61,7 @@ js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node"],
package_name = "@kbn/utility-types",
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)

View file

@ -1,3 +0,0 @@
{
"types": "../target_types/jest/index.d.ts"
}

View file

@ -7,7 +7,6 @@
"rootDir": "./src",
"stripInternal": true,
"types": [
"jest",
"node"
]
},

View file

@ -7,7 +7,7 @@
*/
jest.mock('@elastic/apm-rum');
import type { DeeplyMockedKeys, MockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys, MockedKeys } from '@kbn/utility-types-jest';
import { init, apm } from '@elastic/apm-rum';
import type { Transaction } from '@elastic/apm-rum';
import { ApmSystem } from './apm_system';

View file

@ -8,7 +8,7 @@
import { BehaviorSubject } from 'rxjs';
import type { PublicMethodsOf } from '@kbn/utility-types';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { ChromeBadge, ChromeBreadcrumb, ChromeService, InternalChromeStart } from '.';
const createStartContractMock = () => {

View file

@ -7,7 +7,7 @@
*/
import type { PublicMethodsOf } from '@kbn/utility-types';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import {
NotificationsService,
NotificationsSetup,

View file

@ -7,7 +7,7 @@
*/
import type { PublicMethodsOf } from '@kbn/utility-types';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { OverlayService, OverlayStart } from './overlay_service';
import { overlayBannersServiceMock } from './banners/banners_service.mock';
import { overlayFlyoutServiceMock } from './flyout/flyout_service.mock';

View file

@ -7,7 +7,7 @@
*/
import { REPO_ROOT } from '@kbn/utils';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { CoreContext } from './core_context';
import { Env, IConfigService } from './config';
import { configServiceMock, getEnvOptions } from './config/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { createRewritePolicyMock, resetAllMocks } from './rewrite_appender.test.mocks';
import { rewriteAppenderMocks } from './mocks';
import { LogLevel, LogRecord, LogMeta, DisposableAppender } from '@kbn/logging';

View file

@ -10,7 +10,7 @@ import { of } from 'rxjs';
import { duration } from 'moment';
import { ByteSizeValue } from '@kbn/config-schema';
import { isPromise } from '@kbn/std';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type {
PluginInitializerContext,
CoreSetup,

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { CreatePointInTimeFinderFn, PointInTimeFinder } from './point_in_time_finder';
import { savedObjectsPointInTimeFinderMock } from './point_in_time_finder.mock';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { LegacyUrlAlias, LEGACY_URL_ALIAS_TYPE } from '../../../object_types';
import type { CreatePointInTimeFinderFn, PointInTimeFinder } from '../point_in_time_finder';

View file

@ -11,7 +11,7 @@ import {
mockRawDocExistsInNamespaces,
} from './preflight_check_for_create.test.mock';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { ElasticsearchClient } from '../../../elasticsearch';
import { elasticsearchClientMock } from '../../../elasticsearch/client/mocks';

View file

@ -7,7 +7,7 @@
*/
import { from } from 'rxjs';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type { Filter } from '../../../es_query';
import type { IndexPattern } from '../../..';
import type { IAggConfigs } from '../../aggs';

View file

@ -7,7 +7,7 @@
*/
import { FilterStateStore, buildFilter, FILTERS } from '@kbn/es-query';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { ExecutionContext } from '@kbn/expressions-plugin/common';
import { KibanaContext } from './kibana_context_type';

View file

@ -7,7 +7,7 @@
*/
import { of } from 'rxjs';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { uiSettingsServiceMock } from '@kbn/core/public/mocks';
import { SearchSource } from './search_source';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, CoreStart } from '@kbn/core/public';
import { coreMock } from '@kbn/core/public/mocks';
import { usageCollectionPluginMock, Setup } from '@kbn/usage-collection-plugin/public/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { getEsPreference } from './get_es_preference';
import { CoreStart } from '@kbn/core/public';
import { coreMock } from '@kbn/core/public/mocks';

View file

@ -7,7 +7,7 @@
*/
import { getEql } from './eql';
import { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { EqlExpressionFunctionDefinition } from '../../../common/search/expressions';
import { StartServicesAccessor } from '@kbn/core/public';
import { DataPublicPluginStart, DataStartDependencies } from '../../types';

View file

@ -8,7 +8,7 @@
import { omit } from 'lodash';
import { of as mockOf } from 'rxjs';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type { ExecutionContext } from '@kbn/expressions-plugin/public';
import type { IndexPatternsContract } from '../../../common';
import type {

View file

@ -7,7 +7,7 @@
*/
import { getEsdsl } from './esdsl';
import { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { EsdslExpressionFunctionDefinition } from '../../../common/search/expressions';
import { StartServicesAccessor } from '@kbn/core/public';
import { DataPublicPluginStart, DataStartDependencies } from '../../types';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, CoreStart } from '@kbn/core/public';
import { coreMock, themeServiceMock } from '@kbn/core/public/mocks';
import { IEsSearchRequest } from '../../../common/search';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { coreMock } from '@kbn/core/public/mocks';
import { CoreSetup, CoreStart } from '@kbn/core/public';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { MockedKeys } from '@kbn/utility-types/jest';
import { MockedKeys } from '@kbn/utility-types-jest';
import { mount, ReactWrapper } from 'enzyme';
import { CoreSetup, CoreStart, DocLinksStart } from '@kbn/core/public';
import moment from 'moment';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { act, waitFor } from '@testing-library/react';
import { mount, ReactWrapper } from 'enzyme';
import { CoreSetup, CoreStart } from '@kbn/core/public';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, CoreStart } from '@kbn/core/public';
import moment from 'moment';
import { coreMock } from '@kbn/core/public/mocks';

View file

@ -7,7 +7,7 @@
*/
import { EuiTableFieldDataColumnType } from '@elastic/eui';
import { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { mount } from 'enzyme';
import { CoreSetup, CoreStart } from '@kbn/core/public';
import moment from 'moment';

View file

@ -8,7 +8,7 @@
import { omit } from 'lodash';
import { of as mockOf } from 'rxjs';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { KibanaRequest } from '@kbn/core/server';
import type { ExecutionContext } from '@kbn/expressions-plugin/server';
import type { IndexPatternsContract } from '../../../common';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { from } from 'rxjs';
import { CoreSetup, RequestHandlerContext } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type { CoreSetup, Logger } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, CoreStart, SavedObject } from '@kbn/core/server';
import { coreMock } from '@kbn/core/server/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { KibanaRequest } from '@kbn/core/server';
import { searchSourceCommonMock } from '../../../common/search/search_source/mocks';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, RequestHandlerContext } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import { registerPreviewScriptedFieldRoute } from './preview_scripted_field';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup, RequestHandlerContext } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import { registerHasDataViewsRoute } from './has_data_views';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { CoreSetup } from '@kbn/core/server';
import { CustomIntegrationsPluginSetup } from '@kbn/custom-integrations-plugin/server';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { TutorialsRegistry } from './tutorials_registry';
import { coreMock } from '@kbn/core/server/mocks';
import { CoreSetup } from '@kbn/core/server';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { Storage } from './storage';
import { IStorage, IStorageWrapper } from './types';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { ScreenshotModePluginSetup, ScreenshotModePluginStart } from './types';
export const screenshotModePluginMock = {

View file

@ -9,7 +9,7 @@
import { coreMock } from '@kbn/core/server/mocks';
import { ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server';
import { ConfigSchema } from '../../config';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { DataViewField } from '@kbn/data-views-plugin/common';
import { termsAggSuggestions } from './terms_agg';
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';

View file

@ -10,7 +10,7 @@ import { termsEnumSuggestions } from './terms_enum';
import { coreMock } from '@kbn/core/server/mocks';
import { ElasticsearchClient, SavedObjectsClientContract } from '@kbn/core/server';
import { ConfigSchema } from '../../config';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { TermsEnumResponse } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type { DataViewField } from '@kbn/data-views-plugin/common';

View file

@ -34,7 +34,7 @@ import {
import { CLOUD_SECURITY_POSTURE_PACKAGE_NAME } from '../common/constants';
import Chance from 'chance';
import type { AwaitedProperties } from '@kbn/utility-types';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import {
ElasticsearchClient,
RequestHandlerContext,

View file

@ -7,7 +7,7 @@
import React from 'react';
import { I18nProvider } from '@kbn/i18n-react';
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import { coreMock } from '@kbn/core/public/mocks';
import type { IStorage } from '@kbn/kibana-utils-plugin/public';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type { FleetSetupDeps, FleetStart, FleetStartDeps, FleetStartServices } from '../plugin';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { apiKeysMock } from './api_keys/api_keys.mock';
import type { InternalAuthenticationServiceStart } from './authentication_service';

View file

@ -10,7 +10,7 @@ import Boom from '@hapi/boom';
import type { RequestHandler } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { InternalAuthenticationServiceStart } from '../../authentication';
import { authenticationServiceMock } from '../../authentication/authentication_service.mock';

View file

@ -10,7 +10,7 @@ import Boom from '@hapi/boom';
import type { RequestHandler } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { InternalAuthenticationServiceStart } from '../../authentication';
import { authenticationServiceMock } from '../../authentication/authentication_service.mock';

View file

@ -9,7 +9,7 @@ import { Type } from '@kbn/config-schema';
import type { RequestHandler, RouteConfig } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { SecurityLicense, SecurityLicenseFeatures } from '../../../common/licensing';
import { mockAuthenticatedUser } from '../../../common/model/authenticated_user.mock';

View file

@ -8,7 +8,7 @@
import { Type } from '@kbn/config-schema';
import type { RequestHandler, RouteConfig } from '@kbn/core/server';
import { httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { mockAuthenticatedUser } from '../../../common/model/authenticated_user.mock';
import type { InternalAuthenticationServiceStart } from '../../authentication';

View file

@ -8,7 +8,7 @@
import type { RequestHandler, RouteConfig } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { RouteDefinitionParams } from '../..';
import type { CheckPrivileges } from '../../../authorization/types';

View file

@ -11,7 +11,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type { RequestHandler, RouteConfig } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { securityMock } from '../../mocks';
import type { SecurityRequestHandlerContext, SecurityRouter } from '../../types';

View file

@ -14,7 +14,7 @@ import {
loggingSystemMock,
} from '@kbn/core/server/mocks';
import { licensingMock } from '@kbn/licensing-plugin/server/mocks';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import type { RouteDefinitionParams } from '.';
import { licenseMock } from '../../common/licensing/index.mock';

View file

@ -12,7 +12,7 @@ import type { Headers, RequestHandler, RouteConfig } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
import { coreMock, httpServerMock } from '@kbn/core/server/mocks';
import type { PublicMethodsOf } from '@kbn/utility-types';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { mockAuthenticatedUser } from '../../../common/model/authenticated_user.mock';
import { AuthenticationResult } from '../../authentication';

View file

@ -5,8 +5,8 @@
* 2.0.
*/
import type { MockedKeys } from '@kbn/utility-types/jest';
import type { AwaitedProperties } from '@kbn/utility-types';
import type { MockedKeys } from '@kbn/utility-types-jest';
import type { KibanaRequest } from '@kbn/core/server';
import { coreMock } from '@kbn/core/server/mocks';

View file

@ -3316,6 +3316,10 @@
version "0.0.0"
uid ""
"@kbn/utility-types-jest@link:bazel-bin/packages/kbn-utility-types-jest":
version "0.0.0"
uid ""
"@kbn/utility-types@link:bazel-bin/packages/kbn-utility-types":
version "0.0.0"
uid ""
@ -6505,6 +6509,10 @@
version "0.0.0"
uid ""
"@types/kbn__utility-types-jest@link:bazel-bin/packages/kbn-utility-types-jest/npm_module_types":
version "0.0.0"
uid ""
"@types/kbn__utility-types@link:bazel-bin/packages/kbn-utility-types/npm_module_types":
version "0.0.0"
uid ""