diff --git a/x-pack/plugins/maps/public/classes/layers/__tests__/mock_sync_context.ts b/x-pack/plugins/maps/public/classes/layers/__fixtures__/mock_sync_context.ts similarity index 100% rename from x-pack/plugins/maps/public/classes/layers/__tests__/mock_sync_context.ts rename to x-pack/plugins/maps/public/classes/layers/__fixtures__/mock_sync_context.ts diff --git a/x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.test.tsx b/x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.test.tsx index 822b78aa0deff..8faa9da5fc8b0 100644 --- a/x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.test.tsx +++ b/x-pack/plugins/maps/public/classes/layers/tiled_vector_layer/tiled_vector_layer.test.tsx @@ -3,7 +3,7 @@ * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ -import { MockSyncContext } from '../__tests__/mock_sync_context'; +import { MockSyncContext } from '../__fixtures__/mock_sync_context'; import sinon from 'sinon'; jest.mock('../../../kibana_services', () => { diff --git a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_color_property.test.tsx b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_color_property.test.tsx index 4e6c38eaf38b7..f5bc1e344ca38 100644 --- a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_color_property.test.tsx +++ b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_color_property.test.tsx @@ -21,7 +21,7 @@ import { DATA_MAPPING_FUNCTION, VECTOR_STYLES, } from '../../../../../common/constants'; -import { mockField, MockLayer, MockStyle } from './__tests__/test_util'; +import { mockField, MockLayer, MockStyle } from './test_helpers/test_util'; import { ColorDynamicOptions } from '../../../../../common/descriptor_types'; import { IVectorLayer } from '../../../layers/vector_layer/vector_layer'; import { IField } from '../../../fields/field'; diff --git a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_icon_property.test.tsx b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_icon_property.test.tsx index 2f9e4709c1c0b..ac653a02d9a10 100644 --- a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_icon_property.test.tsx +++ b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_icon_property.test.tsx @@ -16,7 +16,7 @@ import React from 'react'; import { RawValue, VECTOR_STYLES } from '../../../../../common/constants'; // @ts-ignore import { DynamicIconProperty } from './dynamic_icon_property'; -import { mockField, MockLayer } from './__tests__/test_util'; +import { mockField, MockLayer } from './test_helpers/test_util'; import { IconDynamicOptions } from '../../../../../common/descriptor_types'; import { IField } from '../../../fields/field'; import { IVectorLayer } from '../../../layers/vector_layer/vector_layer'; diff --git a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_size_property.test.tsx b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_size_property.test.tsx index b4244cf7829c4..c457bd9aa7fbc 100644 --- a/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_size_property.test.tsx +++ b/x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_size_property.test.tsx @@ -19,7 +19,7 @@ import { RawValue, VECTOR_STYLES } from '../../../../../common/constants'; import { IField } from '../../../fields/field'; import { Map as MbMap } from 'mapbox-gl'; import { SizeDynamicOptions } from '../../../../../common/descriptor_types'; -import { mockField, MockLayer, MockStyle } from './__tests__/test_util'; +import { mockField, MockLayer, MockStyle } from './test_helpers/test_util'; import { IVectorLayer } from '../../../layers/vector_layer/vector_layer'; export class MockMbMap { diff --git a/x-pack/plugins/maps/public/classes/styles/vector/properties/__tests__/test_util.ts b/x-pack/plugins/maps/public/classes/styles/vector/properties/test_helpers/test_util.ts similarity index 100% rename from x-pack/plugins/maps/public/classes/styles/vector/properties/__tests__/test_util.ts rename to x-pack/plugins/maps/public/classes/styles/vector/properties/test_helpers/test_util.ts diff --git a/x-pack/plugins/maps/public/classes/styles/vector/vector_style.test.js b/x-pack/plugins/maps/public/classes/styles/vector/vector_style.test.js index 94090c8abfe4f..be266814df840 100644 --- a/x-pack/plugins/maps/public/classes/styles/vector/vector_style.test.js +++ b/x-pack/plugins/maps/public/classes/styles/vector/vector_style.test.js @@ -12,7 +12,7 @@ import { VECTOR_SHAPE_TYPE, VECTOR_STYLES, } from '../../../../common/constants'; -import { MockField } from './properties/__tests__/test_util'; +import { MockField } from './properties/test_helpers/test_util'; jest.mock('../../../kibana_services'); diff --git a/x-pack/plugins/maps/server/mvt/__tests__/json/0_0_0_gridagg.json b/x-pack/plugins/maps/server/mvt/__fixtures__/json/0_0_0_gridagg.json similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/json/0_0_0_gridagg.json rename to x-pack/plugins/maps/server/mvt/__fixtures__/json/0_0_0_gridagg.json diff --git a/x-pack/plugins/maps/server/mvt/__tests__/json/0_0_0_search.json b/x-pack/plugins/maps/server/mvt/__fixtures__/json/0_0_0_search.json similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/json/0_0_0_search.json rename to x-pack/plugins/maps/server/mvt/__fixtures__/json/0_0_0_search.json diff --git a/x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_docs.pbf b/x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_docs.pbf similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_docs.pbf rename to x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_docs.pbf diff --git a/x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_grid_asgrid.pbf b/x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_grid_asgrid.pbf similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_grid_asgrid.pbf rename to x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_grid_asgrid.pbf diff --git a/x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_grid_aspoint.pbf b/x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_grid_aspoint.pbf similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/pbf/0_0_0_grid_aspoint.pbf rename to x-pack/plugins/maps/server/mvt/__fixtures__/pbf/0_0_0_grid_aspoint.pbf diff --git a/x-pack/plugins/maps/server/mvt/__tests__/tile_es_responses.ts b/x-pack/plugins/maps/server/mvt/__fixtures__/tile_es_responses.ts similarity index 100% rename from x-pack/plugins/maps/server/mvt/__tests__/tile_es_responses.ts rename to x-pack/plugins/maps/server/mvt/__fixtures__/tile_es_responses.ts diff --git a/x-pack/plugins/maps/server/mvt/get_tile.test.ts b/x-pack/plugins/maps/server/mvt/get_tile.test.ts index 1e00fd27e3d1b..ea0d9d32c0f9a 100644 --- a/x-pack/plugins/maps/server/mvt/get_tile.test.ts +++ b/x-pack/plugins/maps/server/mvt/get_tile.test.ts @@ -5,7 +5,7 @@ */ import { getGridTile, getTile } from './get_tile'; -import { TILE_GRIDAGGS, TILE_SEARCHES } from './__tests__/tile_es_responses'; +import { TILE_GRIDAGGS, TILE_SEARCHES } from './__fixtures__/tile_es_responses'; import { Logger } from 'src/core/server'; import * as path from 'path'; import * as fs from 'fs'; @@ -53,7 +53,7 @@ describe('getTile', () => { geoFieldType: ES_GEO_FIELD_TYPE.GEO_SHAPE, }); - compareTiles('./__tests__/pbf/0_0_0_docs.pbf', tile); + compareTiles('./__fixtures__/pbf/0_0_0_docs.pbf', tile); }); }); @@ -116,12 +116,12 @@ describe('getGridTile', () => { test('0.0.0 tile (clusters)', async () => { const tile = await getGridTile(defaultParams); - compareTiles('./__tests__/pbf/0_0_0_grid_aspoint.pbf', tile); + compareTiles('./__fixtures__/pbf/0_0_0_grid_aspoint.pbf', tile); }); test('0.0.0 tile (grids)', async () => { const tile = await getGridTile({ ...defaultParams, requestType: RENDER_AS.GRID }); - compareTiles('./__tests__/pbf/0_0_0_grid_asgrid.pbf', tile); + compareTiles('./__fixtures__/pbf/0_0_0_grid_asgrid.pbf', tile); }); });