kibana/api_docs/kbn_test_jest_helpers.devdocs.json

2377 lines
No EOL
83 KiB
JSON

{
"id": "@kbn/test-jest-helpers",
"client": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"server": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"common": {
"classes": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage",
"type": "Class",
"tags": [],
"label": "StubBrowserStorage",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.StubBrowserStorage",
"text": "StubBrowserStorage"
},
" implements Storage"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.length",
"type": "number",
"tags": [],
"label": "length",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.key",
"type": "Function",
"tags": [],
"label": "key",
"description": [],
"signature": [
"(i: number) => string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.key.$1",
"type": "number",
"tags": [],
"label": "i",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.getItem",
"type": "Function",
"tags": [],
"label": "getItem",
"description": [],
"signature": [
"(key: string) => string | null"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.getItem.$1",
"type": "string",
"tags": [],
"label": "key",
"description": [],
"signature": [
"string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.setItem",
"type": "Function",
"tags": [],
"label": "setItem",
"description": [],
"signature": [
"(key: string, value: string) => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.setItem.$1",
"type": "string",
"tags": [],
"label": "key",
"description": [],
"signature": [
"string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.setItem.$2",
"type": "string",
"tags": [],
"label": "value",
"description": [],
"signature": [
"string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.removeItem",
"type": "Function",
"tags": [],
"label": "removeItem",
"description": [],
"signature": [
"(key: string) => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.removeItem.$1",
"type": "string",
"tags": [],
"label": "key",
"description": [],
"signature": [
"string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.clear",
"type": "Function",
"tags": [],
"label": "clear",
"description": [],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.setStubbedSizeLimit",
"type": "Function",
"tags": [],
"label": "setStubbedSizeLimit",
"description": [],
"signature": [
"(sizeLimit: number) => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.setStubbedSizeLimit.$1",
"type": "number",
"tags": [],
"label": "sizeLimit",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.getStubbedSizeLimit",
"type": "Function",
"tags": [],
"label": "getStubbedSizeLimit",
"description": [],
"signature": [
"() => number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.StubBrowserStorage.getStubbedSize",
"type": "Function",
"tags": [],
"label": "getStubbedSize",
"description": [],
"signature": [
"() => number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_browser_storage.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
}
],
"initialIsOpen": false
}
],
"functions": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.clearBroadcastChannelInstances",
"type": "Function",
"tags": [],
"label": "clearBroadcastChannelInstances",
"description": [
"\nRemoves all BroadcastChannel instances."
],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_broadcast_channel.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.delay",
"type": "Function",
"tags": [],
"label": "delay",
"description": [],
"signature": [
"(time?: number) => Promise<unknown>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/index.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.delay.$1",
"type": "number",
"tags": [],
"label": "time",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/index.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.findTestSubject",
"type": "Function",
"tags": [],
"label": "findTestSubject",
"description": [
"\nFind node which matches a specific test subject selector. Returns ReactWrappers around DOM element,\nhttps://github.com/airbnb/enzyme/tree/master/docs/api/ReactWrapper.\nCommon use cases include calling simulate or getDOMNode on the returned ReactWrapper.\n\nThe ~= matcher looks for the value in space-separated list, allowing support for multiple data-test-subj\nvalues on a single element. See https://www.w3.org/TR/selectors-3/#attribute-selectors for more\ninfo on the other possible matchers.\n"
],
"signature": [
"<T = string>(reactWrapper: ",
"ReactWrapper",
"<{}, {}, React.Component<{}, {}, any>>, testSubjectSelector: T, matcher?: Matcher) => ",
"ReactWrapper",
"<",
"HTMLAttributes",
", {}, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/find_test_subject.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.findTestSubject.$1",
"type": "Object",
"tags": [],
"label": "reactWrapper",
"description": [
"The React wrapper to search in"
],
"signature": [
"ReactWrapper",
"<{}, {}, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/find_test_subject.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.findTestSubject.$2",
"type": "Uncategorized",
"tags": [],
"label": "testSubjectSelector",
"description": [
"The data test subject selector"
],
"signature": [
"T"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/find_test_subject.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.findTestSubject.$3",
"type": "CompoundType",
"tags": [],
"label": "matcher",
"description": [
"optional matcher"
],
"signature": [
"Matcher"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/find_test_subject.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getBroadcastChannelInstances",
"type": "Function",
"tags": [],
"label": "getBroadcastChannelInstances",
"description": [
"\nReturns all BroadcastChannel instances."
],
"signature": [
"() => BroadcastChannel[]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_broadcast_channel.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": [
"BroadcastChannel[]"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomNumber",
"type": "Function",
"tags": [],
"label": "getRandomNumber",
"description": [],
"signature": [
"(range?: { min: number; max: number; }) => number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomNumber.$1",
"type": "Object",
"tags": [],
"label": "range",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomNumber.$1.min",
"type": "number",
"tags": [],
"label": "min",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomNumber.$1.max",
"type": "number",
"tags": [],
"label": "max",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false
}
]
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomString",
"type": "Function",
"tags": [],
"label": "getRandomString",
"description": [],
"signature": [
"(options?: {}) => string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.getRandomString.$1",
"type": "Object",
"tags": [],
"label": "options",
"description": [],
"signature": [
"{}"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/random.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountHook",
"type": "Function",
"tags": [
"return"
],
"label": "mountHook",
"description": [
"\nAllows for execution of hooks inside of a test component which records the\nreturned values.\n"
],
"signature": [
"<Args extends {}, HookValue extends unknown>(body: (args: Args) => HookValue, WrapperComponent?: React.ComponentType<{ children?: React.ReactNode; }> | undefined, initialArgs?: Args) => ReactHookWrapper<Args, HookValue>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountHook.$1",
"type": "Function",
"tags": [],
"label": "body",
"description": [
"A function that calls the hook and returns data derived from it"
],
"signature": [
"(args: Args) => HookValue"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountHook.$2",
"type": "CompoundType",
"tags": [],
"label": "WrapperComponent",
"description": [
"A component that, if provided, will be wrapped\naround the test component. This can be useful to provide context values."
],
"signature": [
"React.ComponentType<{ children?: React.ReactNode; }> | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountHook.$3",
"type": "Uncategorized",
"tags": [],
"label": "initialArgs",
"description": [],
"signature": [
"Args"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [
"An object providing access to the hook state and\nfunctions to interact with it."
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithI18nProvider",
"type": "Function",
"tags": [],
"label": "mountWithI18nProvider",
"description": [],
"signature": [
"(child: React.ReactElement<T, string | React.JSXElementConstructor<any>>, options: (Omit<",
"MountRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined) => ",
"ReactWrapper",
"<any, any, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithI18nProvider.$1",
"type": "Object",
"tags": [],
"label": "child",
"description": [],
"signature": [
"React.ReactElement<T, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithI18nProvider.$2",
"type": "CompoundType",
"tags": [],
"label": "options",
"description": [],
"signature": [
"(Omit<",
"MountRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithIntl",
"type": "Function",
"tags": [
"return"
],
"label": "mountWithIntl",
"description": [
"\n Creates the wrapper instance using mount with provided intl object into context\n"
],
"signature": [
"(node: React.ReactElement<any, string | React.JSXElementConstructor<any>>, options: ",
"MountRendererProps",
" | undefined) => ",
"ReactWrapper",
"<any, Readonly<{}>, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithIntl.$1",
"type": "Object",
"tags": [],
"label": "node",
"description": [
"The React element or cheerio wrapper"
],
"signature": [
"React.ReactElement<any, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.mountWithIntl.$2",
"type": "Object",
"tags": [],
"label": "options",
"description": [
"properties to pass into mount wrapper"
],
"signature": [
"MountRendererProps",
" | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [
"The wrapper instance around the rendered output with intl object in context"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.nextTick",
"type": "Function",
"tags": [],
"label": "nextTick",
"description": [],
"signature": [
"() => Promise<unknown>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/index.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.nodeWithIntlProp",
"type": "Function",
"tags": [],
"label": "nodeWithIntlProp",
"description": [
"\nWhen using @kbn/i18n `injectI18n` on components, props.intl is required."
],
"signature": [
"(node: React.ReactElement<T, string | React.JSXElementConstructor<any>>) => React.ReactElement<T & { intl: ",
"IntlShape",
"; }, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.nodeWithIntlProp.$1",
"type": "Object",
"tags": [],
"label": "node",
"description": [],
"signature": [
"React.ReactElement<T, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed",
"type": "Function",
"tags": [],
"label": "registerTestBed",
"description": [
"\nRegister a new Testbed to test a React Component.\n"
],
"signature": [
"(Component: React.ComponentType<P>, config: ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncTestBedConfig",
"text": "AsyncTestBedConfig"
},
"<P>) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncSetupFunc",
"text": "AsyncSetupFunc"
},
"<T, Partial<P>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$1",
"type": "CompoundType",
"tags": [],
"label": "Component",
"description": [
"The component under test"
],
"signature": [
"React.ComponentType<P>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$2",
"type": "Object",
"tags": [],
"label": "config",
"description": [
"An optional configuration object for the Testbed"
],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncTestBedConfig",
"text": "AsyncTestBedConfig"
},
"<P>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed",
"type": "Function",
"tags": [],
"label": "registerTestBed",
"description": [],
"signature": [
"(Component: React.ComponentType<P>, config: ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBedConfig",
"text": "TestBedConfig"
},
"<P> | undefined) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.SyncSetupFunc",
"text": "SyncSetupFunc"
},
"<T, Partial<P>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$1",
"type": "CompoundType",
"tags": [],
"label": "Component",
"description": [],
"signature": [
"React.ComponentType<P>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$2",
"type": "Object",
"tags": [],
"label": "config",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBedConfig",
"text": "TestBedConfig"
},
"<P> | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed",
"type": "Function",
"tags": [],
"label": "registerTestBed",
"description": [],
"signature": [
"(Component: React.ComponentType<P>, config: ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncTestBedConfig",
"text": "AsyncTestBedConfig"
},
"<P> | ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBedConfig",
"text": "TestBedConfig"
},
"<P> | undefined) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.SetupFunc",
"text": "SetupFunc"
},
"<T, Partial<P>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$1",
"type": "CompoundType",
"tags": [],
"label": "Component",
"description": [],
"signature": [
"React.ComponentType<P>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.registerTestBed.$2",
"type": "CompoundType",
"tags": [],
"label": "config",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncTestBedConfig",
"text": "AsyncTestBedConfig"
},
"<P> | ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBedConfig",
"text": "TestBedConfig"
},
"<P> | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/testbed.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderReactTestingLibraryWithI18n",
"type": "Function",
"tags": [],
"label": "renderReactTestingLibraryWithI18n",
"description": [],
"signature": [
"(ui: React.ReactNode, options?: Omit<",
"RenderOptions",
"<typeof ",
"node_modules/@testing-library/dom/types/queries",
", HTMLElement, HTMLElement>, \"queries\"> | undefined) => ",
"RenderResult",
"<typeof ",
"node_modules/@testing-library/dom/types/queries",
", HTMLElement, HTMLElement>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testing_library_react_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderReactTestingLibraryWithI18n.$1",
"type": "Object",
"tags": [],
"label": "args",
"description": [],
"signature": [
"[ui: React.ReactNode, options?: Omit<",
"RenderOptions",
"<typeof ",
"node_modules/@testing-library/dom/types/queries",
", HTMLElement, HTMLElement>, \"queries\"> | undefined]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testing_library_react_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithI18nProvider",
"type": "Function",
"tags": [],
"label": "renderWithI18nProvider",
"description": [],
"signature": [
"(child: React.ReactElement<T, string | React.JSXElementConstructor<any>>, options: (Omit<",
"MountRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined) => cheerio.Cheerio"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithI18nProvider.$1",
"type": "Object",
"tags": [],
"label": "child",
"description": [],
"signature": [
"React.ReactElement<T, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithI18nProvider.$2",
"type": "CompoundType",
"tags": [],
"label": "options",
"description": [],
"signature": [
"(Omit<",
"MountRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithIntl",
"type": "Function",
"tags": [
"return"
],
"label": "renderWithIntl",
"description": [
"\n Creates the wrapper instance using render with provided intl object into context\n"
],
"signature": [
"(node: React.ReactElement<T, string | React.JSXElementConstructor<any>>, options: any) => cheerio.Cheerio"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithIntl.$1",
"type": "Object",
"tags": [],
"label": "node",
"description": [
"The React element or cheerio wrapper"
],
"signature": [
"React.ReactElement<T, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.renderWithIntl.$2",
"type": "Any",
"tags": [],
"label": "options",
"description": [
"properties to pass into render wrapper"
],
"signature": [
"any"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [
"The wrapper instance around the rendered output with intl object in context"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementClientSizes",
"type": "Function",
"tags": [],
"label": "setHTMLElementClientSizes",
"description": [],
"signature": [
"(width: number, height: number) => { mockRestore: () => void; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementClientSizes.$1",
"type": "number",
"tags": [],
"label": "width",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementClientSizes.$2",
"type": "number",
"tags": [],
"label": "height",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementOffset",
"type": "Function",
"tags": [],
"label": "setHTMLElementOffset",
"description": [],
"signature": [
"(width: number, height: number) => { mockRestore: () => void; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementOffset.$1",
"type": "number",
"tags": [],
"label": "width",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setHTMLElementOffset.$2",
"type": "number",
"tags": [],
"label": "height",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetBBox",
"type": "Function",
"tags": [],
"label": "setSVGElementGetBBox",
"description": [],
"signature": [
"(width: number, height: number, x?: number, y?: number) => { mockRestore: () => void; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetBBox.$1",
"type": "number",
"tags": [],
"label": "width",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetBBox.$2",
"type": "number",
"tags": [],
"label": "height",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetBBox.$3",
"type": "number",
"tags": [],
"label": "x",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetBBox.$4",
"type": "number",
"tags": [],
"label": "y",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetComputedTextLength",
"type": "Function",
"tags": [],
"label": "setSVGElementGetComputedTextLength",
"description": [],
"signature": [
"(width: number) => { mockRestore: () => void; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.setSVGElementGetComputedTextLength.$1",
"type": "number",
"tags": [],
"label": "width",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithI18nProvider",
"type": "Function",
"tags": [],
"label": "shallowWithI18nProvider",
"description": [],
"signature": [
"(child: React.ReactElement<T, string | React.JSXElementConstructor<any>>, options: (Omit<",
"ShallowRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined) => ",
"ShallowWrapper",
"<Readonly<{}>, Readonly<{}>, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithI18nProvider.$1",
"type": "Object",
"tags": [],
"label": "child",
"description": [],
"signature": [
"React.ReactElement<T, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithI18nProvider.$2",
"type": "CompoundType",
"tags": [],
"label": "options",
"description": [],
"signature": [
"(Omit<",
"ShallowRendererProps",
", \"wrappingComponent\"> & { wrappingComponent?: React.ComponentType<any> | ",
"ComponentType",
"<any> | undefined; }) | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithIntl",
"type": "Function",
"tags": [
"return"
],
"label": "shallowWithIntl",
"description": [
"\n Creates the wrapper instance using shallow with provided intl object into context\n"
],
"signature": [
"(node: React.ReactElement<any, string | React.JSXElementConstructor<any>>, options: (",
"ShallowRendererProps",
" & { wrappingComponent?: React.ComponentType<{}> | undefined; }) | undefined) => ",
"ShallowWrapper",
"<any, Readonly<{}>, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithIntl.$1",
"type": "Object",
"tags": [],
"label": "node",
"description": [
"The React element or cheerio wrapper"
],
"signature": [
"React.ReactElement<any, string | React.JSXElementConstructor<any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.shallowWithIntl.$2",
"type": "CompoundType",
"tags": [],
"label": "options",
"description": [
"properties to pass into shallow wrapper"
],
"signature": [
"(",
"ShallowRendererProps",
" & { wrappingComponent?: React.ComponentType<{}> | undefined; }) | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/enzyme_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": [
"The wrapper instance around the rendered output with intl object in context"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.stubBroadcastChannel",
"type": "Function",
"tags": [],
"label": "stubBroadcastChannel",
"description": [
"\nStubs the global window.BroadcastChannel for use in jest tests."
],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_broadcast_channel.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.stubWebWorker",
"type": "Function",
"tags": [],
"label": "stubWebWorker",
"description": [],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/stub_web_worker.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithMemoryRouter",
"type": "Function",
"tags": [],
"label": "WithMemoryRouter",
"description": [],
"signature": [
"(initialEntries?: ",
"LocationDescriptor",
"<unknown>[], initialIndex?: number) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => React.JSX.Element"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithMemoryRouter.$1",
"type": "Array",
"tags": [],
"label": "initialEntries",
"description": [],
"signature": [
"LocationDescriptor",
"<unknown>[]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithMemoryRouter.$2",
"type": "number",
"tags": [],
"label": "initialIndex",
"description": [],
"signature": [
"number"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithRoute",
"type": "Function",
"tags": [],
"label": "WithRoute",
"description": [],
"signature": [
"(componentRoutePath: ",
"LocationDescriptor",
"<unknown> | ",
"LocationDescriptor",
"<unknown>[], onRouter: (router: any) => void) => (WrappedComponent: React.ComponentType<T>) => (props: any) => React.JSX.Element"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithRoute.$1",
"type": "CompoundType",
"tags": [],
"label": "componentRoutePath",
"description": [],
"signature": [
"LocationDescriptor",
"<unknown> | ",
"LocationDescriptor",
"<unknown>[]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithRoute.$2",
"type": "Function",
"tags": [],
"label": "onRouter",
"description": [],
"signature": [
"(router: any) => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithStore",
"type": "Function",
"tags": [],
"label": "WithStore",
"description": [],
"signature": [
"(store: any) => (WrappedComponent: React.ComponentType<T>) => (props: any) => React.JSX.Element"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/redux_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.WithStore.$1",
"type": "Any",
"tags": [],
"label": "store",
"description": [],
"signature": [
"any"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/redux_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
}
],
"interfaces": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.AsyncTestBedConfig",
"type": "Interface",
"tags": [],
"label": "AsyncTestBedConfig",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.AsyncTestBedConfig",
"text": "AsyncTestBedConfig"
},
"<T> extends ",
"BaseTestBedConfig",
"<T>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.AsyncTestBedConfig.doMountAsync",
"type": "boolean",
"tags": [],
"label": "doMountAsync",
"description": [],
"signature": [
"true"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.EuiTableMetaData",
"type": "Interface",
"tags": [],
"label": "EuiTableMetaData",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.EuiTableMetaData.rows",
"type": "Array",
"tags": [],
"label": "rows",
"description": [
"Array of rows of the table. Each row exposes its reactWrapper and its columns"
],
"signature": [
"{ reactWrapper: ",
"ReactWrapper",
"; columns: { reactWrapper: ",
"ReactWrapper",
"; value: string; }[]; }[]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.EuiTableMetaData.tableCellsValues",
"type": "Array",
"tags": [],
"label": "tableCellsValues",
"description": [
"A 2 dimensional array of rows & columns containing\nthe text content of each cell of the table"
],
"signature": [
"string[][]"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed",
"type": "Interface",
"tags": [],
"label": "TestBed",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBed",
"text": "TestBed"
},
"<T>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.component",
"type": "Object",
"tags": [],
"label": "component",
"description": [
"The component under test"
],
"signature": [
"ReactWrapper",
"<any, {}, React.Component<{}, {}, any>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.exists",
"type": "Function",
"tags": [],
"label": "exists",
"description": [
"\nPass it a `data-test-subj` and it will return true if it exists or false if it does not exist.\n"
],
"signature": [
"(testSubject: T, count?: number | undefined) => boolean"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.exists.$1",
"type": "Uncategorized",
"tags": [],
"label": "testSubject",
"description": [
"The data test subject to look for (can be a nested path. e.g. \"detailPanel.mySection\")."
],
"signature": [
"T"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.exists.$2",
"type": "number",
"tags": [],
"label": "count",
"description": [
"The number of times the subject needs to appear in order to return \"true\""
],
"signature": [
"number | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.find",
"type": "Function",
"tags": [],
"label": "find",
"description": [
"\nPass it a `data-test-subj` and it will return an Enzyme reactWrapper of the node.\nYou can target a nested test subject by separating it with a dot ('.');\n"
],
"signature": [
"(testSubject: T, reactWrapper?: ",
"ReactWrapper",
" | undefined) => ",
"ReactWrapper"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.find.$1",
"type": "Uncategorized",
"tags": [],
"label": "testSubject",
"description": [
"The data test subject to look for"
],
"signature": [
"T"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.find.$2",
"type": "Object",
"tags": [],
"label": "reactWrapper",
"description": [],
"signature": [
"ReactWrapper",
" | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": false
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.setProps",
"type": "Function",
"tags": [],
"label": "setProps",
"description": [
"\nUpdate the props of the mounted component\n"
],
"signature": [
"(updatedProps: any) => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.setProps.$1",
"type": "Any",
"tags": [],
"label": "updatedProps",
"description": [
"The updated prop object"
],
"signature": [
"any"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.form",
"type": "Object",
"tags": [],
"label": "form",
"description": [],
"signature": [
"{ setInputValue: (input: T | ",
"ReactWrapper",
", value: string) => void; setSelectValue: (select: T | ",
"ReactWrapper",
", value: string, doUpdateComponent?: boolean | undefined) => void; selectCheckBox: (checkboxTestSubject: T, isChecked?: boolean | undefined) => void; toggleEuiSwitch: (switchTestSubject: T) => void; setComboBoxValue: (comboBoxTestSubject: T, value: string) => void; getErrorsMessages: (wrapper?: T | ",
"ReactWrapper",
" | undefined) => string[]; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.table",
"type": "Object",
"tags": [],
"label": "table",
"description": [],
"signature": [
"{ getMetaData: (tableTestSubject: T) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.EuiTableMetaData",
"text": "EuiTableMetaData"
},
"; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBed.router",
"type": "Object",
"tags": [],
"label": "router",
"description": [],
"signature": [
"{ navigateTo: (url: string) => void; }"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBedConfig",
"type": "Interface",
"tags": [],
"label": "TestBedConfig",
"description": [],
"signature": [
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBedConfig",
"text": "TestBedConfig"
},
"<T> extends ",
"BaseTestBedConfig",
"<T>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.TestBedConfig.doMountAsync",
"type": "boolean",
"tags": [],
"label": "doMountAsync",
"description": [],
"signature": [
"false | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
}
],
"enums": [],
"misc": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.AsyncSetupFunc",
"type": "Type",
"tags": [],
"label": "AsyncSetupFunc",
"description": [],
"signature": [
"(props?: P | undefined) => Promise<",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBed",
"text": "TestBed"
},
"<T>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"returnComment": [],
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.AsyncSetupFunc.$1",
"type": "Uncategorized",
"tags": [],
"label": "props",
"description": [],
"signature": [
"P | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.SetupFunc",
"type": "Type",
"tags": [],
"label": "SetupFunc",
"description": [],
"signature": [
"(props?: P | undefined) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBed",
"text": "TestBed"
},
"<T> | Promise<",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBed",
"text": "TestBed"
},
"<T>>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"returnComment": [],
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.SetupFunc.$1",
"type": "Uncategorized",
"tags": [],
"label": "props",
"description": [],
"signature": [
"P | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.SyncSetupFunc",
"type": "Type",
"tags": [],
"label": "SyncSetupFunc",
"description": [],
"signature": [
"(props?: P | undefined) => ",
{
"pluginId": "@kbn/test-jest-helpers",
"scope": "common",
"docId": "kibKbnTestJestHelpersPluginApi",
"section": "def-common.TestBed",
"text": "TestBed"
},
"<T>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false,
"returnComment": [],
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.SyncSetupFunc.$1",
"type": "Uncategorized",
"tags": [],
"label": "props",
"description": [],
"signature": [
"P | undefined"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/testbed/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
}
],
"objects": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock",
"type": "Object",
"tags": [],
"label": "reactRouterMock",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history",
"type": "Object",
"tags": [],
"label": "history",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.push",
"type": "Function",
"tags": [],
"label": "push",
"description": [],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.createHref",
"type": "Function",
"tags": [],
"label": "createHref",
"description": [],
"signature": [
"(location: ",
"LocationDescriptorObject",
"<unknown>) => string"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.createHref.$1",
"type": "Object",
"tags": [],
"label": "location",
"description": [],
"signature": [
"LocationDescriptorObject",
"<unknown>"
],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.location",
"type": "Object",
"tags": [],
"label": "location",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.location.pathname",
"type": "string",
"tags": [],
"label": "pathname",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.location.search",
"type": "string",
"tags": [],
"label": "search",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.location.state",
"type": "string",
"tags": [],
"label": "state",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.history.location.hash",
"type": "string",
"tags": [],
"label": "hash",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
}
]
}
]
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route",
"type": "Object",
"tags": [],
"label": "route",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route.location",
"type": "Object",
"tags": [],
"label": "location",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route.location.pathname",
"type": "string",
"tags": [],
"label": "pathname",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route.location.search",
"type": "string",
"tags": [],
"label": "search",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route.location.state",
"type": "string",
"tags": [],
"label": "state",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/test-jest-helpers",
"id": "def-common.reactRouterMock.route.location.hash",
"type": "string",
"tags": [],
"label": "hash",
"description": [],
"path": "src/platform/packages/shared/kbn-test-jest-helpers/src/router_helpers.tsx",
"deprecated": false,
"trackAdoption": false
}
]
}
]
}
],
"initialIsOpen": false
}
]
}
}