diff --git a/.eslintrc.js b/.eslintrc.js index 6801358b4bccb..019f93d91b555 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -376,6 +376,16 @@ module.exports = { }, }, + /** + * Jest specific rules + */ + { + files: ['**/*.test.{js,ts,tsx}'], + rules: { + 'jest/valid-describe': 'error', + }, + }, + /** * APM overrides */ diff --git a/packages/kbn-pm/src/utils/projects.test.ts b/packages/kbn-pm/src/utils/projects.test.ts index f127bfd370012..1b839440b9449 100644 --- a/packages/kbn-pm/src/utils/projects.test.ts +++ b/packages/kbn-pm/src/utils/projects.test.ts @@ -224,7 +224,7 @@ describe('#topologicallyBatchProjects', () => { expect(expectedBatches).toMatchSnapshot(); }); - describe('batchByWorkspace = true', async () => { + describe('batchByWorkspace = true', () => { test('batches projects topologically based on their project dependencies and workspaces', async () => { const batches = topologicallyBatchProjects(projects, graph, { batchByWorkspace: true }); diff --git a/packages/kbn-ui-framework/src/components/button/button.test.js b/packages/kbn-ui-framework/src/components/button/button.test.js index dacb26fab7065..779ed88256c01 100644 --- a/packages/kbn-ui-framework/src/components/button/button.test.js +++ b/packages/kbn-ui-framework/src/components/button/button.test.js @@ -56,7 +56,7 @@ describe('KuiButton', () => { describe('Props', () => { describe('buttonType', () => { BUTTON_TYPES.forEach(buttonType => { - describe(buttonType, () => { + describe(`${buttonType}`, () => { test(`renders the ${buttonType} class`, () => { const $button = render( { describe('Props', () => { describe('type', () => { ICON_TYPES.forEach(type => { - describe(type, () => { + describe(`${type}`, () => { test(`renders the ${type} class`, () => { const $buttonIcon = render(); expect($buttonIcon).toMatchSnapshot(); diff --git a/packages/kbn-ui-framework/src/components/button/link_button.test.js b/packages/kbn-ui-framework/src/components/button/link_button.test.js index 820d1895f6bac..66566ce44129d 100644 --- a/packages/kbn-ui-framework/src/components/button/link_button.test.js +++ b/packages/kbn-ui-framework/src/components/button/link_button.test.js @@ -57,7 +57,7 @@ describe('KuiLinkButton', () => { describe('Props', () => { describe('buttonType', () => { BUTTON_TYPES.forEach(buttonType => { - describe(buttonType, () => { + describe(`${buttonType}`, () => { test(`renders the ${buttonType} class`, () => { const $button = render( { describe('Props', () => { describe('buttonType', () => { BUTTON_TYPES.forEach(buttonType => { - describe(buttonType, () => { + describe(`${buttonType}`, () => { test(`renders the ${buttonType} class`, () => { const $button = render(); expect($button).toMatchSnapshot(); diff --git a/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js b/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js index b4a22b7cb3485..d86902e1d9cc7 100644 --- a/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js +++ b/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js @@ -31,7 +31,7 @@ describe('KuiCollapseButton', () => { describe('Props', () => { describe('direction', () => { DIRECTIONS.forEach(direction => { - describe(direction, () => { + describe(`${direction}`, () => { test(`renders the ${direction} class`, () => { const component = ; expect(render(component)).toMatchSnapshot(); diff --git a/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts b/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts index 3e264760a148b..5f894cc8d8a9e 100644 --- a/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts +++ b/src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts @@ -219,7 +219,7 @@ describe('filter_manager', () => { }); }); - describe('add filters', async () => { + describe('add filters', () => { test('app state should accept a single filter', async function() { updateSubscription = filterManager.getUpdates$().subscribe(updateListener); const f1 = getFilter(FilterStateStore.APP_STATE, false, false, 'age', 34); @@ -535,7 +535,7 @@ describe('filter_manager', () => { }); }); - describe('remove filters', async () => { + describe('remove filters', () => { test('remove on empty should do nothing and not fire events', async () => { updateSubscription = filterManager.getUpdates$().subscribe(updateListener); await filterManager.removeAll(); diff --git a/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js b/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js index 56a2eb93e0416..bca5d05e76557 100644 --- a/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js +++ b/src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js @@ -81,7 +81,7 @@ describe('headers', () => { return JSON.parse(requestParts[0]); }; - describe('search request preference', async () => { + describe('search request preference', () => { test('should be set to sessionId when courier:setRequestPreference is "sessionId"', async () => { const config = { get: () => { diff --git a/src/legacy/ui/public/kfetch/kfetch.test.ts b/src/legacy/ui/public/kfetch/kfetch.test.ts index 3452892a4b23a..259acc2753a43 100644 --- a/src/legacy/ui/public/kfetch/kfetch.test.ts +++ b/src/legacy/ui/public/kfetch/kfetch.test.ts @@ -133,7 +133,7 @@ describe('kfetch', () => { } }); - describe('when throwing response error (KFetchError)', async () => { + describe('when throwing response error (KFetchError)', () => { let error: KFetchError; beforeEach(async () => { fetchMock.get('*', { status: 404, body: { foo: 'bar' } }); @@ -348,7 +348,7 @@ describe('kfetch', () => { }); }); - describe('when interceptors return synchronously', async () => { + describe('when interceptors return synchronously', () => { let resp: any; beforeEach(async () => { fetchMock.get('*', { foo: 'bar' }); @@ -381,7 +381,7 @@ describe('kfetch', () => { }); }); - describe('when interceptors return promise', async () => { + describe('when interceptors return promise', () => { let resp: any; beforeEach(async () => { fetchMock.get('*', { foo: 'bar' }); diff --git a/test/api_integration/apis/management/saved_objects/relationships.js b/test/api_integration/apis/management/saved_objects/relationships.js index ee369e5c8827a..8e5152f0f6463 100644 --- a/test/api_integration/apis/management/saved_objects/relationships.js +++ b/test/api_integration/apis/management/saved_objects/relationships.js @@ -52,7 +52,7 @@ export default function ({ getService }) { const getSavedObjectTypesQuery = types => coerceToArray(types).map(type => `savedObjectTypes=${type}`).join('&'); const defaultQuery = getSavedObjectTypesQuery(['visualization', 'index-pattern', 'search', 'dashboard']); - describe('searches', async () => { + describe('searches', () => { it('should validate search response schema', async () => { await supertest .get(`${baseApiUrl}/search/960372e0-3224-11e8-a572-ffca06da1357?${defaultQuery}`) @@ -145,7 +145,7 @@ export default function ({ getService }) { }); }); - describe('dashboards', async () => { + describe('dashboards', () => { it('should validate dashboard response schema', async () => { await supertest .get(`${baseApiUrl}/dashboard/b70c7ae0-3224-11e8-a572-ffca06da1357?${defaultQuery}`) @@ -240,7 +240,7 @@ export default function ({ getService }) { }); }); - describe('visualizations', async () => { + describe('visualizations', () => { it('should validate visualization response schema', async () => { await supertest .get(`${baseApiUrl}/visualization/a42c0580-3224-11e8-a572-ffca06da1357?${defaultQuery}`) @@ -320,7 +320,7 @@ export default function ({ getService }) { }); }); - describe('index patterns', async () => { + describe('index patterns', () => { it('should validate visualization response schema', async () => { await supertest .get(`${baseApiUrl}/index-pattern/8963ca30-3224-11e8-a572-ffca06da1357?${defaultQuery}`) diff --git a/test/functional/apps/dashboard/create_and_add_embeddables.js b/test/functional/apps/dashboard/create_and_add_embeddables.js index 78486d24b4fca..8f83dc173b721 100644 --- a/test/functional/apps/dashboard/create_and_add_embeddables.js +++ b/test/functional/apps/dashboard/create_and_add_embeddables.js @@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }) { const browser = getService('browser'); const dashboardAddPanel = getService('dashboardAddPanel'); - describe('create and add embeddables', async () => { + describe('create and add embeddables', () => { before(async () => { await PageObjects.dashboard.loadSavedDashboard('few panels'); }); diff --git a/test/functional/apps/dashboard/dashboard_filter_bar.js b/test/functional/apps/dashboard/dashboard_filter_bar.js index 2c1ee7e604368..7b85c55e17ef2 100644 --- a/test/functional/apps/dashboard/dashboard_filter_bar.js +++ b/test/functional/apps/dashboard/dashboard_filter_bar.js @@ -27,12 +27,12 @@ export default function ({ getService, getPageObjects }) { const pieChart = getService('pieChart'); const PageObjects = getPageObjects(['dashboard', 'header', 'visualize']); - describe('dashboard filter bar', async () => { + describe('dashboard filter bar', () => { before(async () => { await PageObjects.dashboard.gotoDashboardLandingPage(); }); - describe('Add a filter bar', async function () { + describe('Add a filter bar', function () { before(async () => { await PageObjects.dashboard.gotoDashboardLandingPage(); }); @@ -50,7 +50,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('filter editor field list', async function () { + describe('filter editor field list', function () { this.tags(['skipFirefox']); before(async () => { @@ -80,7 +80,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('filter pills', async function () { + describe('filter pills', function () { before(async () => { await filterBar.ensureFieldEditorModalIsClosed(); await PageObjects.dashboard.gotoDashboardLandingPage(); diff --git a/test/functional/apps/dashboard/dashboard_filtering.js b/test/functional/apps/dashboard/dashboard_filtering.js index 9c8076afa2126..af86522646568 100644 --- a/test/functional/apps/dashboard/dashboard_filtering.js +++ b/test/functional/apps/dashboard/dashboard_filtering.js @@ -34,13 +34,13 @@ export default function ({ getService, getPageObjects }) { const dashboardPanelActions = getService('dashboardPanelActions'); const PageObjects = getPageObjects(['dashboard', 'header', 'visualize']); - describe('dashboard filtering', async function () { + describe('dashboard filtering', function () { this.tags('smoke'); before(async () => { await PageObjects.dashboard.gotoDashboardLandingPage(); }); - describe('adding a filter that excludes all data', async () => { + describe('adding a filter that excludes all data', () => { before(async () => { await PageObjects.dashboard.clickNewDashboard(); await PageObjects.dashboard.setTimepickerInDataRange(); @@ -107,7 +107,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('using a pinned filter that excludes all data', async () => { + describe('using a pinned filter that excludes all data', () => { before(async () => { await filterBar.toggleFilterPinned('bytes'); await PageObjects.header.waitUntilLoadingHasFinished(); @@ -169,7 +169,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('disabling a filter unfilters the data on', async () => { + describe('disabling a filter unfilters the data on', () => { before(async () => { await filterBar.toggleFilterEnabled('bytes'); await PageObjects.header.waitUntilLoadingHasFinished(); @@ -227,7 +227,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('nested filtering', async () => { + describe('nested filtering', () => { before(async () => { await PageObjects.dashboard.gotoDashboardLandingPage(); }); diff --git a/test/functional/apps/dashboard/dashboard_listing.js b/test/functional/apps/dashboard/dashboard_listing.js index 84ab47ae592e2..466a7abd4ce08 100644 --- a/test/functional/apps/dashboard/dashboard_listing.js +++ b/test/functional/apps/dashboard/dashboard_listing.js @@ -30,7 +30,7 @@ export default function ({ getService, getPageObjects }) { await PageObjects.dashboard.initTests(); }); - describe('create prompt', async () => { + describe('create prompt', () => { it('appears when there are no dashboards', async function () { const promptExists = await PageObjects.dashboard.getCreateDashboardPromptExists(); expect(promptExists).to.be(true); @@ -59,7 +59,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('delete', async function () { + describe('delete', function () { it('default confirm action is cancel', async function () { await PageObjects.dashboard.searchForDashboardWithName(dashboardName); await PageObjects.dashboard.checkDashboardListingSelectAllCheckbox(); diff --git a/test/functional/apps/dashboard/dashboard_options.js b/test/functional/apps/dashboard/dashboard_options.js index db1c7091a78f5..4ef015efe7812 100644 --- a/test/functional/apps/dashboard/dashboard_options.js +++ b/test/functional/apps/dashboard/dashboard_options.js @@ -23,7 +23,7 @@ export default function ({ getService, getPageObjects }) { const retry = getService('retry'); const PageObjects = getPageObjects(['dashboard']); - describe('dashboard data-shared attributes', async () => { + describe('dashboard data-shared attributes', () => { let originalTitles = []; before(async () => { diff --git a/test/functional/apps/dashboard/dashboard_query_bar.js b/test/functional/apps/dashboard/dashboard_query_bar.js index f6f3b8a894518..990f2c83d9561 100644 --- a/test/functional/apps/dashboard/dashboard_query_bar.js +++ b/test/functional/apps/dashboard/dashboard_query_bar.js @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) { const queryBar = getService('queryBar'); const PageObjects = getPageObjects(['dashboard', 'discover']); - describe('dashboard query bar', async () => { + describe('dashboard query bar', () => { before(async () => { await PageObjects.dashboard.loadSavedDashboard('dashboard with filter'); }); diff --git a/test/functional/apps/dashboard/dashboard_time.js b/test/functional/apps/dashboard/dashboard_time.js index 8ce77f7ee46f5..917157e54eee0 100644 --- a/test/functional/apps/dashboard/dashboard_time.js +++ b/test/functional/apps/dashboard/dashboard_time.js @@ -56,7 +56,7 @@ export default function ({ getPageObjects, getService }) { }); }); - describe('dashboard with stored timed', async function () { + describe('dashboard with stored timed', function () { it('is saved with time', async function () { await PageObjects.dashboard.switchToEditMode(); await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime); diff --git a/test/functional/apps/dashboard/embed_mode.js b/test/functional/apps/dashboard/embed_mode.js index f5b99bf30ca95..4263abc3acdd8 100644 --- a/test/functional/apps/dashboard/embed_mode.js +++ b/test/functional/apps/dashboard/embed_mode.js @@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }) { const PageObjects = getPageObjects(['dashboard', 'common']); const browser = getService('browser'); - describe('embed mode', async () => { + describe('embed mode', () => { before(async () => { await PageObjects.dashboard.loadSavedDashboard('few panels'); }); diff --git a/test/functional/apps/dashboard/empty_dashboard.js b/test/functional/apps/dashboard/empty_dashboard.js index 26745ed61910a..2a7772a32093b 100644 --- a/test/functional/apps/dashboard/empty_dashboard.js +++ b/test/functional/apps/dashboard/empty_dashboard.js @@ -24,7 +24,7 @@ export default function ({ getService, getPageObjects }) { const dashboardAddPanel = getService('dashboardAddPanel'); const PageObjects = getPageObjects(['dashboard']); - describe('empty dashboard', async () => { + describe('empty dashboard', () => { before(async () => { await PageObjects.dashboard.clickNewDashboard(); }); diff --git a/test/functional/apps/dashboard/full_screen_mode.js b/test/functional/apps/dashboard/full_screen_mode.js index 0475c40eff0c4..3c5ced7339df3 100644 --- a/test/functional/apps/dashboard/full_screen_mode.js +++ b/test/functional/apps/dashboard/full_screen_mode.js @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }) { const dashboardPanelActions = getService('dashboardPanelActions'); const PageObjects = getPageObjects(['dashboard', 'common']); - describe('full screen mode', async () => { + describe('full screen mode', () => { before(async () => { await PageObjects.dashboard.loadSavedDashboard('few panels'); }); diff --git a/test/functional/apps/dashboard/view_edit.js b/test/functional/apps/dashboard/view_edit.js index 6e3392409f180..35c65f30bc185 100644 --- a/test/functional/apps/dashboard/view_edit.js +++ b/test/functional/apps/dashboard/view_edit.js @@ -53,7 +53,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('shows lose changes warning', async function () { + describe('shows lose changes warning', function () { describe('and loses changes on confirmation', function () { beforeEach(async function () { await PageObjects.dashboard.gotoDashboardEditMode(dashboardName); @@ -193,7 +193,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('Does not show lose changes warning', async function () { + describe('Does not show lose changes warning', function () { it('when time changed is not stored with dashboard', async function () { await PageObjects.dashboard.gotoDashboardEditMode(dashboardName); await PageObjects.dashboard.saveDashboard(dashboardName, { storeTimeWithDashboard: false }); diff --git a/test/functional/apps/discover/_discover.js b/test/functional/apps/discover/_discover.js index 86d14b78a03e1..1b2ddf22e7a69 100644 --- a/test/functional/apps/discover/_discover.js +++ b/test/functional/apps/discover/_discover.js @@ -380,7 +380,7 @@ export default function ({ getService, getPageObjects }) { } }); - describe('query #2, which has an empty time range', async () => { + describe('query #2, which has an empty time range', () => { const fromTime = '1999-06-11 09:22:11.000'; const toTime = '1999-06-12 11:21:04.000'; @@ -401,7 +401,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('filter editor', async function () { + describe('filter editor', function () { it('should add a phrases filter', async function () { await filterBar.addFilter('extension.raw', 'is one of', 'jpg'); expect(await filterBar.hasFilter('extension.raw', 'jpg')).to.be(true); diff --git a/test/functional/apps/visualize/_markdown_vis.js b/test/functional/apps/visualize/_markdown_vis.js index 4fca691153b36..f50641407fc29 100644 --- a/test/functional/apps/visualize/_markdown_vis.js +++ b/test/functional/apps/visualize/_markdown_vis.js @@ -29,7 +29,7 @@ export default function ({ getPageObjects, getService }) {

Inline HTML that should not be rendered as html

`; - describe('visualize app', async () => { + describe('visualize app', () => { before(async function () { await PageObjects.visualize.navigateToNewVisualization(); await PageObjects.visualize.clickMarkdownWidget(); @@ -37,7 +37,7 @@ export default function ({ getPageObjects, getService }) { await PageObjects.visualize.clickGo(); }); - describe('markdown vis', async () => { + describe('markdown vis', () => { it('should not have inspector enabled', async function () { await inspector.expectIsNotEnabled(); diff --git a/test/functional/apps/visualize/_pie_chart.js b/test/functional/apps/visualize/_pie_chart.js index 40f0e76d82613..b9c10aaf578bf 100644 --- a/test/functional/apps/visualize/_pie_chart.js +++ b/test/functional/apps/visualize/_pie_chart.js @@ -28,7 +28,7 @@ export default function ({ getService, getPageObjects }) { const fromTime = '2015-09-19 06:31:44.000'; const toTime = '2015-09-23 18:31:44.000'; - describe('pie chart', async function () { + describe('pie chart', function () { const vizName1 = 'Visualization PieChart'; before(async function () { log.debug('navigateToApp visualize'); diff --git a/test/functional/apps/visualize/_point_series_options.js b/test/functional/apps/visualize/_point_series_options.js index 671f77b3e5425..61ea45cdc2e02 100644 --- a/test/functional/apps/visualize/_point_series_options.js +++ b/test/functional/apps/visualize/_point_series_options.js @@ -184,7 +184,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('timezones', async function () { + describe('timezones', function () { const expectedLabels = [ '2015-09-20 00:00', '2015-09-21 00:00', diff --git a/test/functional/apps/visualize/_tile_map.js b/test/functional/apps/visualize/_tile_map.js index a4ce3f1442094..7719ecca56a65 100644 --- a/test/functional/apps/visualize/_tile_map.js +++ b/test/functional/apps/visualize/_tile_map.js @@ -209,7 +209,7 @@ export default function ({ getService, getPageObjects }) { }); - describe('Only request data around extent of map option', async () => { + describe('Only request data around extent of map option', () => { it('when checked adds filters to aggregation', async () => { const vizName1 = 'Visualization TileMap'; diff --git a/test/functional/apps/visualize/_visualize_listing.js b/test/functional/apps/visualize/_visualize_listing.js index 51f6497f63e8e..df4812ab3f147 100644 --- a/test/functional/apps/visualize/_visualize_listing.js +++ b/test/functional/apps/visualize/_visualize_listing.js @@ -25,7 +25,7 @@ export default function ({ getPageObjects }) { describe('visualize listing page', function describeIndexTests() { const vizName = 'Visualize Listing Test'; - describe('create and delete', async function () { + describe('create and delete', function () { before(async function () { await PageObjects.visualize.gotoVisualizationLandingPage(); diff --git a/x-pack/legacy/plugins/canvas/migrations.test.js b/x-pack/legacy/plugins/canvas/migrations.test.js index 16954efd49cc0..182ef3b18cce7 100644 --- a/x-pack/legacy/plugins/canvas/migrations.test.js +++ b/x-pack/legacy/plugins/canvas/migrations.test.js @@ -7,7 +7,7 @@ import { migrations } from './migrations'; import { CANVAS_TYPE } from './common/lib'; -describe(CANVAS_TYPE, () => { +describe(`${CANVAS_TYPE}`, () => { describe('7.0.0', () => { const migrate = doc => migrations[CANVAS_TYPE]['7.0.0'](doc); diff --git a/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js b/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js index 0c8da43267569..fcfe87f460b19 100644 --- a/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js +++ b/x-pack/legacy/plugins/canvas/server/routes/workpad.test.js @@ -252,7 +252,7 @@ Array [ }); }); - describe(`GET ${routePrefix}/find`, async () => { + it(`GET ${routePrefix}/find`, async () => { const request = { method: 'GET', url: `${routePrefix}/find?name=abc&page=2&perPage=10`, diff --git a/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js b/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js index 0430cfbdb68c8..f116e5657280a 100644 --- a/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js +++ b/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js @@ -76,7 +76,7 @@ describe('', () => { }); }); - describe('when there are auto-follow patterns', async () => { + describe('when there are auto-follow patterns', () => { let find; let exists; let component; diff --git a/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js b/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js index 5e9ea387cda59..8df920aa06423 100644 --- a/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js +++ b/x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js @@ -74,7 +74,7 @@ describe('', () => { }); }); - describe('when there are follower indices', async () => { + describe('when there are follower indices', () => { let find; let exists; let component; diff --git a/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js b/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js index 5458dfa9599aa..bcefb21167499 100644 --- a/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js +++ b/x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js @@ -45,7 +45,7 @@ describe('license_pre_routing_factory', () => { }); }); - describe('isAvailable is true', async () => { + describe('isAvailable is true', () => { beforeEach(() => { mockLicenseCheckResults = { isAvailable: true diff --git a/x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js b/x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js index aa39ad85bd820..ff7c429b1576f 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js +++ b/x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js @@ -45,7 +45,7 @@ const mockTooltipProperties = [ new MockTooltipProperty('prop2', 'foobar2', false) ]; -describe('FeatureProperties', async () => { +describe('FeatureProperties', () => { test('should not show filter button', async () => { const component = shallow( diff --git a/x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js b/x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js index 328402957bd42..9203c4f0dd5ad 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js +++ b/x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js @@ -52,7 +52,7 @@ const defaultProps = { isLocked: false }; -describe('FeatureTooltip (single)', async () => { +describe('FeatureTooltip (single)', () => { test('should not show close button', async () => { const component = shallow( @@ -91,7 +91,7 @@ describe('FeatureTooltip (single)', async () => { }); -describe('FeatureTooltip (multi)', async () => { +describe('FeatureTooltip (multi)', () => { test('should not show close button / should show count', async () => { const component = shallow( diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js index b3515c4c0c0a0..bf3652d8aaa0f 100644 --- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js +++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js @@ -129,7 +129,7 @@ describe('Elasticsearch Settings Find Reason for No Data', () => { expect(result).to.eql({ found: false }); }); - describe('exporters', async () => { + describe('exporters', () => { it('should warn if all exporters are disabled', async () => { const input = { exporters: { diff --git a/x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js b/x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js index 0dedb14fdfc53..d8f690813dc12 100644 --- a/x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js +++ b/x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js @@ -60,7 +60,7 @@ describe('', () => { }); }); - describe('when there are remote clusters', async () => { + describe('when there are remote clusters', () => { let find; let exists; let component; diff --git a/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js b/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js index fb82cb45ee62f..0ffc19efba298 100644 --- a/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js +++ b/x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js @@ -296,7 +296,7 @@ describe('CSV Execute Job', function () { }); }); - describe('Cells with formula values', async () => { + describe('Cells with formula values', () => { it('returns `csv_contains_formulas` when cells contain formulas', async function () { mockServer.config().get.withArgs('xpack.reporting.csv.checkForFormulas').returns(true); callWithRequestStub.onFirstCall().returns({ diff --git a/x-pack/legacy/plugins/reporting/server/routes/jobs.test.js b/x-pack/legacy/plugins/reporting/server/routes/jobs.test.js index 8a65a108af8b3..2d1f48dd790a0 100644 --- a/x-pack/legacy/plugins/reporting/server/routes/jobs.test.js +++ b/x-pack/legacy/plugins/reporting/server/routes/jobs.test.js @@ -228,7 +228,7 @@ describe(`when job is completed`, () => { expect(headers['content-type']).toBe('application/pdf'); }); - describe(`when non-whitelisted contentType specified in job output`, async () => { + describe(`when non-whitelisted contentType specified in job output`, () => { test(`sets statusCode to 500`, async () => { const { statusCode } = await getCompletedResponse({ outputContentType: 'application/html' }); expect(statusCode).toBe(500); diff --git a/x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js b/x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js index 8f2e90fdcc869..50908d62cfd5e 100644 --- a/x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js +++ b/x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js @@ -58,7 +58,7 @@ function getServerMock(customization) { const getResponseMock = (customization = {}) => customization; describe('license checks', () => { - describe('with a basic license', async () => { + describe('with a basic license', () => { let usageStats; beforeAll(async () => { const serverWithBasicLicenseMock = getServerMock(); @@ -83,7 +83,7 @@ describe('license checks', () => { }); }); - describe('with no license', async () => { + describe('with no license', () => { let usageStats; beforeAll(async () => { const serverWithNoLicenseMock = getServerMock(); @@ -108,7 +108,7 @@ describe('license checks', () => { }); }); - describe('with platinum license', async () => { + describe('with platinum license', () => { let usageStats; beforeAll(async () => { const serverWithPlatinumLicenseMock = getServerMock(); @@ -135,7 +135,7 @@ describe('license checks', () => { }); }); - describe('with no usage data', async () => { + describe('with no usage data', () => { let usageStats; beforeAll(async () => { const serverWithBasicLicenseMock = getServerMock(); diff --git a/x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts b/x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts index 1447b45c82121..dc93f5638646f 100644 --- a/x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts +++ b/x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts @@ -274,7 +274,7 @@ describe('features', () => { expectGetFeatures: false, }, ].forEach(({ group, expectManageSpaces, expectGetFeatures }) => { - describe(group, () => { + describe(`${group}`, () => { test('actions defined only at the feature are included in `all` and `read`', () => { const features: Feature[] = [ { diff --git a/x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx index 5512690c291f5..76c92df47f241 100644 --- a/x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx @@ -17,7 +17,7 @@ import '../../mock/ui_settings'; import { LastEventTime } from '.'; -describe('Last Event Time Stat', async () => { +describe('Last Event Time Stat', () => { // this is just a little hack to silence a warning that we'll get until react // fixes this: https://github.com/facebook/react/pull/14853 // For us that mean we need to upgrade to 16.9.0 diff --git a/x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx index 6f4f7d953cb8f..67cabfa4914cf 100644 --- a/x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx @@ -19,7 +19,7 @@ import { createStore, hostsModel, networkModel, State } from '../../../store'; import { AddToKql } from '.'; -describe('AddToKql Component', async () => { +describe('AddToKql Component', () => { const state: State = mockGlobalState; let store = createStore(state, apolloClientObservable); diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx index 741d0c1d634f9..4607938d76555 100644 --- a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx @@ -16,7 +16,7 @@ import '../../../../mock/ui_settings'; import { FirstLastSeenHost, FirstLastSeenHostType } from '.'; -describe('FirstLastSeen Component', async () => { +describe('FirstLastSeen Component', () => { // this is just a little hack to silence a warning that we'll get until react // fixes this: https://github.com/facebook/react/pull/14853 // For us that mean we need to upgrade to 16.9.0 diff --git a/x-pack/legacy/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts b/x-pack/legacy/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts index cb93bc4b33d6d..317e2a7554e03 100644 --- a/x-pack/legacy/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts +++ b/x-pack/legacy/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts @@ -21,7 +21,7 @@ describe('getDeprecationLoggingStatus', () => { }); describe('setDeprecationLogging', () => { - describe('isEnabled = true', async () => { + describe('isEnabled = true', () => { it('calls cluster.putSettings with logger.deprecation = WARN', async () => { const callWithRequest = jest.fn(); await setDeprecationLogging(callWithRequest, {} as any, true); @@ -31,7 +31,7 @@ describe('setDeprecationLogging', () => { }); }); - describe('isEnabled = false', async () => { + describe('isEnabled = false', () => { it('calls cluster.putSettings with logger.deprecation = ERROR', async () => { const callWithRequest = jest.fn(); await setDeprecationLogging(callWithRequest, {} as any, false); diff --git a/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js b/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js index 27c575e7265b9..5ce1d7d956d67 100644 --- a/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js +++ b/x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js @@ -33,7 +33,7 @@ export default function ({ getService }) { }); }); - describe('detail', async () => { + describe('detail', () => { it('should return the node stats when providing a custom node attribute', async () => { // Load the stats from ES js client const nodeStats = await getNodesStats(); diff --git a/x-pack/test/api_integration/apis/security/roles.js b/x-pack/test/api_integration/apis/security/roles.js index f5a6631afb32e..d1d4c3c7b7af8 100644 --- a/x-pack/test/api_integration/apis/security/roles.js +++ b/x-pack/test/api_integration/apis/security/roles.js @@ -88,7 +88,7 @@ export default function ({ getService }) { }); }); - it(`should ${basic ? 'not' : ''} create a role with kibana and FLS/DLS elasticsearch + it(`should ${basic ? 'not' : ''} create a role with kibana and FLS/DLS elasticsearch privileges on ${basic ? 'basic' : 'trial'} licenses`, async () => { await supertest.put('/api/security/role/role_with_privileges_dls_fls') .set('kbn-xsrf', 'xxx') @@ -219,7 +219,7 @@ export default function ({ getService }) { }); }); - it(`should ${basic ? 'not' : ''} update a role adding DLS and TLS priviledges + it(`should ${basic ? 'not' : ''} update a role adding DLS and TLS priviledges when using ${basic ? 'basic' : 'trial'} license`, async () => { await es.shield.putRole({ @@ -267,7 +267,7 @@ export default function ({ getService }) { }); }); - describe('Get Role', async () => { + describe('Get Role', () => { it('should get roles', async () => { await es.shield.putRole({ name: 'role_to_get', diff --git a/x-pack/test/functional/apps/canvas/smoke_test.js b/x-pack/test/functional/apps/canvas/smoke_test.js index 5042ef2ebf35f..2a3dfbf669e4e 100644 --- a/x-pack/test/functional/apps/canvas/smoke_test.js +++ b/x-pack/test/functional/apps/canvas/smoke_test.js @@ -14,7 +14,7 @@ export default function canvasSmokeTest({ getService, getPageObjects }) { const retry = getService('retry'); const PageObjects = getPageObjects(['common']); - describe('smoke test', async function () { + describe('smoke test', function () { this.tags('smoke'); const workpadListSelector = 'canvasWorkpadLoaderTable canvasWorkpadLoaderWorkpad'; const testWorkpadId = 'workpad-1705f884-6224-47de-ba49-ca224fe6ec31'; diff --git a/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts b/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts index 32c90c65c4a92..341e87c453c29 100644 --- a/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts +++ b/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts @@ -117,7 +117,7 @@ export default function({ getPageObjects, getService }: KibanaFunctionalTestDefa }); }); - describe('space with Visualize disabled', async () => { + describe('space with Visualize disabled', () => { before(async () => { // we need to load the following in every situation as deleting // a space deletes all of the associated saved objects @@ -144,7 +144,7 @@ export default function({ getPageObjects, getService }: KibanaFunctionalTestDefa }); }); - describe('space with index pattern management disabled', async () => { + describe('space with index pattern management disabled', () => { before(async () => { await spacesService.create({ id: 'custom_space', diff --git a/x-pack/test/functional/apps/maps/documents_source/top_hits.js b/x-pack/test/functional/apps/maps/documents_source/top_hits.js index 517d0b682be18..3b09bd9d4b35a 100644 --- a/x-pack/test/functional/apps/maps/documents_source/top_hits.js +++ b/x-pack/test/functional/apps/maps/documents_source/top_hits.js @@ -31,7 +31,7 @@ export default function ({ getPageObjects, getService }) { expect(mapboxStyle.sources[VECTOR_SOURCE_ID].data.features.length).to.equal(10); }); - describe('configuration', async () => { + describe('configuration', () => { before(async () => { await PageObjects.maps.openLayerPanel('logstash'); // Can not use testSubjects because data-test-subj is placed range input and number input @@ -52,7 +52,7 @@ export default function ({ getPageObjects, getService }) { }); }); - describe('query', async () => { + describe('query', () => { before(async () => { await PageObjects.maps.setAndSubmitQuery('machine.os.raw : "win 8"'); }); diff --git a/x-pack/test/functional/apps/maps/es_geo_grid_source.js b/x-pack/test/functional/apps/maps/es_geo_grid_source.js index 1ee034d07689c..f24029dae8d5f 100644 --- a/x-pack/test/functional/apps/maps/es_geo_grid_source.js +++ b/x-pack/test/functional/apps/maps/es_geo_grid_source.js @@ -30,7 +30,7 @@ export default function ({ getPageObjects, getService }) { function makeRequestTestsForGeoPrecision(LAYER_ID) { - describe('geoprecision - requests', async () => { + describe('geoprecision - requests', () => { let beforeTimestamp; beforeEach(async () => { await PageObjects.maps.setView(DATA_CENTER_LAT, DATA_CENTER_LON, 1); @@ -58,7 +58,7 @@ export default function ({ getPageObjects, getService }) { }); }); - describe('geotile grid precision - data', async ()=> { + describe('geotile grid precision - data', ()=> { beforeEach(async () => { await PageObjects.maps.setView(DATA_CENTER_LAT, DATA_CENTER_LON, 1); diff --git a/x-pack/test/functional/apps/maps/layer_errors.js b/x-pack/test/functional/apps/maps/layer_errors.js index 1fe9778a44db3..142ea7c4bf025 100644 --- a/x-pack/test/functional/apps/maps/layer_errors.js +++ b/x-pack/test/functional/apps/maps/layer_errors.js @@ -16,7 +16,7 @@ export default function ({ getPageObjects }) { await PageObjects.maps.loadSavedMap('layer with errors'); }); - describe('ESSearchSource with missing index pattern id', async () => { + describe('ESSearchSource with missing index pattern id', () => { const MISSING_INDEX_ID = 'idThatDoesNotExitForESSearchSource'; const LAYER_NAME = MISSING_INDEX_ID; @@ -33,7 +33,7 @@ export default function ({ getPageObjects }) { }); }); - describe('ESGeoGridSource with missing index pattern id', async () => { + describe('ESGeoGridSource with missing index pattern id', () => { const MISSING_INDEX_ID = 'idThatDoesNotExitForESGeoGridSource'; const LAYER_NAME = MISSING_INDEX_ID; @@ -49,7 +49,7 @@ export default function ({ getPageObjects }) { }); }); - describe('ESJoinSource with missing index pattern id', async () => { + describe('ESJoinSource with missing index pattern id', () => { const MISSING_INDEX_ID = 'idThatDoesNotExitForESJoinSource'; const LAYER_NAME = 'geo_shapes*'; @@ -65,7 +65,7 @@ export default function ({ getPageObjects }) { }); }); - describe('EMSFileSource with missing EMS id', async () => { + describe('EMSFileSource with missing EMS id', () => { const MISSING_EMS_ID = 'idThatDoesNotExitForEMSFileSource'; const LAYER_NAME = 'EMS_vector_shapes'; @@ -81,7 +81,7 @@ export default function ({ getPageObjects }) { }); }); - describe('EMSTMSSource with missing EMS id', async () => { + describe('EMSTMSSource with missing EMS id', () => { const MISSING_EMS_ID = 'idThatDoesNotExitForEMSTile'; const LAYER_NAME = 'EMS_tiles'; @@ -97,7 +97,7 @@ export default function ({ getPageObjects }) { }); }); - describe('KibanaRegionmapSource with missing region map configuration', async () => { + describe('KibanaRegionmapSource with missing region map configuration', () => { const MISSING_REGION_NAME = 'nameThatDoesNotExitForKibanaRegionmapSource'; const LAYER_NAME = 'Custom_vector_shapes'; @@ -113,7 +113,7 @@ export default function ({ getPageObjects }) { }); }); - describe('KibanaTilemapSource with missing map.tilemap.url configuration', async () => { + describe('KibanaTilemapSource with missing map.tilemap.url configuration', () => { const LAYER_NAME = 'Custom_TMS'; it('should diplay error message in layer panel', async () => { diff --git a/x-pack/test/functional/apps/monitoring/cluster/alerts.js b/x-pack/test/functional/apps/monitoring/cluster/alerts.js index a55f2282a9196..70df964e28102 100644 --- a/x-pack/test/functional/apps/monitoring/cluster/alerts.js +++ b/x-pack/test/functional/apps/monitoring/cluster/alerts.js @@ -161,7 +161,7 @@ export default function ({ getService, getPageObjects }) { }); }); - describe('alert actions take you to the elasticsearch indices listing', async () => { + describe('alert actions take you to the elasticsearch indices listing', () => { const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects); before(async () => { diff --git a/x-pack/test/functional/apps/rollup_job/rollup_jobs.js b/x-pack/test/functional/apps/rollup_job/rollup_jobs.js index 0d87820874662..85acc047be396 100644 --- a/x-pack/test/functional/apps/rollup_job/rollup_jobs.js +++ b/x-pack/test/functional/apps/rollup_job/rollup_jobs.js @@ -12,7 +12,7 @@ export default function ({ getService, getPageObjects }) { const log = getService('log'); const PageObjects = getPageObjects(['security', 'rollup', 'common', 'header']); - describe('rollup job', async function () { + describe('rollup job', function () { this.tags('smoke'); before(async () => { // init data diff --git a/x-pack/test/functional/apps/security/management.js b/x-pack/test/functional/apps/security/management.js index e2f2316cc1a20..8ff682311e47e 100644 --- a/x-pack/test/functional/apps/security/management.js +++ b/x-pack/test/functional/apps/security/management.js @@ -41,8 +41,8 @@ export default function ({ getService, getPageObjects }) { await PageObjects.settings.navigateTo(); }); - describe('Security', async () => { - describe('navigation', async () => { + describe('Security', () => { + describe('navigation', () => { it('Can navigate to create user section', async () => { await PageObjects.security.clickElasticsearchUsers(); await PageObjects.security.clickCreateNewUser(); diff --git a/x-pack/test/functional/apps/security/rbac_phase1.js b/x-pack/test/functional/apps/security/rbac_phase1.js index fbe2f8b66c59b..9b8be614c9f5b 100644 --- a/x-pack/test/functional/apps/security/rbac_phase1.js +++ b/x-pack/test/functional/apps/security/rbac_phase1.js @@ -14,7 +14,7 @@ export default function ({ getService, getPageObjects }) { const browser = getService('browser'); const kibanaServer = getService('kibanaServer'); - describe('rbac ', async function () { + describe('rbac ', function () { before(async () => { await browser.setWindowSize(1600, 1000); log.debug('users'); diff --git a/x-pack/test/functional/apps/spaces/spaces_selection.ts b/x-pack/test/functional/apps/spaces/spaces_selection.ts index 49f0d0f8d73a2..e7a265589f25c 100644 --- a/x-pack/test/functional/apps/spaces/spaces_selection.ts +++ b/x-pack/test/functional/apps/spaces/spaces_selection.ts @@ -92,7 +92,7 @@ export default function spaceSelectorFunctonalTests({ await esArchiver.unload('spaces/selector'); }); - describe('displays separate data for each space', async () => { + describe('displays separate data for each space', () => { it('in the default space', async () => { await PageObjects.common.navigateToApp('dashboard'); await expectDashboardRenders('[Logs] Web Traffic'); diff --git a/x-pack/test/reporting/api/bwc_existing_indexes.js b/x-pack/test/reporting/api/bwc_existing_indexes.js index 7743e99c03de4..b7a3ed51f6fe9 100644 --- a/x-pack/test/reporting/api/bwc_existing_indexes.js +++ b/x-pack/test/reporting/api/bwc_existing_indexes.js @@ -20,7 +20,7 @@ export default function ({ getService }) { const reportingAPI = getService('reportingAPI'); const usageAPI = getService('usageAPI'); - describe('BWC report generation into existing indexes', async () => { + describe('BWC report generation into existing indexes', () => { let expectedCompletedReportCount; let cleanupIndexAlias; diff --git a/x-pack/test/spaces_api_integration/common/suites/delete.ts b/x-pack/test/spaces_api_integration/common/suites/delete.ts index 2cf2d9388665a..9ec0198001511 100644 --- a/x-pack/test/spaces_api_integration/common/suites/delete.ts +++ b/x-pack/test/spaces_api_integration/common/suites/delete.ts @@ -164,7 +164,7 @@ export function deleteTestSuiteFactory(es: any, esArchiver: any, supertest: Supe .then(tests.exists.response); }); - describe(`when the space is reserved`, async () => { + describe(`when the space is reserved`, () => { it(`should return ${tests.reservedSpace.statusCode}`, async () => { return supertest .delete(`${getUrlPrefix(spaceId)}/api/spaces/space/default`) diff --git a/x-pack/test_utils/jest/integration_tests/example_integration.test.ts b/x-pack/test_utils/jest/integration_tests/example_integration.test.ts index 215122696d33c..fed22f7281912 100644 --- a/x-pack/test_utils/jest/integration_tests/example_integration.test.ts +++ b/x-pack/test_utils/jest/integration_tests/example_integration.test.ts @@ -7,7 +7,7 @@ import * as kbnTestServer from '../../../../src/test_utils/kbn_server'; import { TestKbnServerConfig } from '../../kbn_server_config'; -describe('example integration test with kbn server', async () => { +describe('example integration test with kbn server', () => { let kbn: any; let kbnServer: any; let kbnRootServer: any;