mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
TS project refs: Converts rollup, remoteClusters, crossClusterReplication, indexLifecycleManagement to a TS project refs (#90713)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
5f8de693b9
commit
6dde543b6c
11 changed files with 200 additions and 7 deletions
|
@ -10,13 +10,26 @@ import { register } from './add_route';
|
|||
import { API_BASE_PATH } from '../../../common/constants';
|
||||
import { LicenseStatus } from '../../types';
|
||||
|
||||
import { xpackMocks } from '../../../../../mocks';
|
||||
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';
|
||||
|
||||
import {
|
||||
elasticsearchServiceMock,
|
||||
httpServerMock,
|
||||
httpServiceMock,
|
||||
coreMock,
|
||||
} from '../../../../../../src/core/server/mocks';
|
||||
|
||||
// Re-implement the mock that was imported directly from `x-pack/mocks`
|
||||
function createCoreRequestHandlerContextMock() {
|
||||
return {
|
||||
core: coreMock.createRequestHandlerContext(),
|
||||
licensing: licensingMock.createRequestHandlerContext(),
|
||||
};
|
||||
}
|
||||
|
||||
const xpackMocks = {
|
||||
createRequestHandlerContext: createCoreRequestHandlerContextMock,
|
||||
};
|
||||
interface TestOptions {
|
||||
licenseCheckResult?: LicenseStatus;
|
||||
apiResponses?: Array<() => Promise<unknown>>;
|
||||
|
|
|
@ -10,13 +10,26 @@ import { register } from './delete_route';
|
|||
import { API_BASE_PATH } from '../../../common/constants';
|
||||
import { LicenseStatus } from '../../types';
|
||||
|
||||
import { xpackMocks } from '../../../../../mocks';
|
||||
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';
|
||||
|
||||
import {
|
||||
elasticsearchServiceMock,
|
||||
httpServerMock,
|
||||
httpServiceMock,
|
||||
coreMock,
|
||||
} from '../../../../../../src/core/server/mocks';
|
||||
|
||||
// Re-implement the mock that was imported directly from `x-pack/mocks`
|
||||
function createCoreRequestHandlerContextMock() {
|
||||
return {
|
||||
core: coreMock.createRequestHandlerContext(),
|
||||
licensing: licensingMock.createRequestHandlerContext(),
|
||||
};
|
||||
}
|
||||
|
||||
const xpackMocks = {
|
||||
createRequestHandlerContext: createCoreRequestHandlerContextMock,
|
||||
};
|
||||
interface TestOptions {
|
||||
licenseCheckResult?: LicenseStatus;
|
||||
apiResponses?: Array<() => Promise<unknown>>;
|
||||
|
|
|
@ -12,13 +12,26 @@ import { register } from './get_route';
|
|||
import { API_BASE_PATH } from '../../../common/constants';
|
||||
import { LicenseStatus } from '../../types';
|
||||
|
||||
import { xpackMocks } from '../../../../../mocks';
|
||||
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';
|
||||
|
||||
import {
|
||||
elasticsearchServiceMock,
|
||||
httpServerMock,
|
||||
httpServiceMock,
|
||||
coreMock,
|
||||
} from '../../../../../../src/core/server/mocks';
|
||||
|
||||
// Re-implement the mock that was imported directly from `x-pack/mocks`
|
||||
function createCoreRequestHandlerContextMock() {
|
||||
return {
|
||||
core: coreMock.createRequestHandlerContext(),
|
||||
licensing: licensingMock.createRequestHandlerContext(),
|
||||
};
|
||||
}
|
||||
|
||||
const xpackMocks = {
|
||||
createRequestHandlerContext: createCoreRequestHandlerContextMock,
|
||||
};
|
||||
interface TestOptions {
|
||||
licenseCheckResult?: LicenseStatus;
|
||||
apiResponses?: Array<() => Promise<unknown>>;
|
||||
|
|
|
@ -10,13 +10,26 @@ import { register } from './update_route';
|
|||
import { API_BASE_PATH } from '../../../common/constants';
|
||||
import { LicenseStatus } from '../../types';
|
||||
|
||||
import { xpackMocks } from '../../../../../mocks';
|
||||
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';
|
||||
|
||||
import {
|
||||
elasticsearchServiceMock,
|
||||
httpServerMock,
|
||||
httpServiceMock,
|
||||
coreMock,
|
||||
} from '../../../../../../src/core/server/mocks';
|
||||
|
||||
// Re-implement the mock that was imported directly from `x-pack/mocks`
|
||||
function createCoreRequestHandlerContextMock() {
|
||||
return {
|
||||
core: coreMock.createRequestHandlerContext(),
|
||||
licensing: licensingMock.createRequestHandlerContext(),
|
||||
};
|
||||
}
|
||||
|
||||
const xpackMocks = {
|
||||
createRequestHandlerContext: createCoreRequestHandlerContextMock,
|
||||
};
|
||||
interface TestOptions {
|
||||
licenseCheckResult?: LicenseStatus;
|
||||
apiResponses?: Array<() => Promise<unknown>>;
|
||||
|
|
30
x-pack/plugins/remote_clusters/tsconfig.json
Normal file
30
x-pack/plugins/remote_clusters/tsconfig.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
"fixtures/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../../src/core/tsconfig.json" },
|
||||
// required plugins
|
||||
{ "path": "../licensing/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/management/tsconfig.json" },
|
||||
{ "path": "../index_management/tsconfig.json" },
|
||||
{ "path": "../features/tsconfig.json" },
|
||||
// optional plugins
|
||||
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../cloud/tsconfig.json" },
|
||||
// required bundles
|
||||
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue