From fa3b5351f2da6681695a10c0e68de12a39977472 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Tue, 5 Jan 2021 17:36:17 +0000 Subject: [PATCH 1/2] chore(NA): move uptime plugin tests out of __tests__ folder --- .../stringify_kueries.test.ts.snap | 0 .../combine_filters_and_user_search.test.ts | 2 +- .../common/lib/{__tests__ => }/ml.test.ts | 2 +- .../{__tests__ => }/stringify_kueries.test.ts | 2 +- .../__snapshots__/cert_monitors.test.tsx.snap | 0 .../__snapshots__/cert_search.test.tsx.snap | 0 .../__snapshots__/cert_status.test.tsx.snap | 0 .../certificates_list.test.tsx.snap | 0 .../fingerprint_col.test.tsx.snap | 0 .../{__tests__ => }/cert_monitors.test.tsx | 4 ++-- .../{__tests__ => }/cert_search.test.tsx | 4 ++-- .../{__tests__ => }/cert_status.test.tsx | 4 ++-- .../{__tests__ => }/certificates_list.test.tsx | 4 ++-- .../{__tests__ => }/fingerprint_col.test.tsx | 4 ++-- .../__snapshots__/location_link.test.tsx.snap | 0 .../monitor_page_link.test.tsx.snap | 0 .../__snapshots__/monitor_tags.test.tsx.snap | 0 .../uptime_date_picker.test.tsx.snap | 0 .../chart_empty_state.test.tsx.snap | 0 .../__snapshots__/chart_wrapper.test.tsx.snap | 0 .../__snapshots__/donut_chart.test.tsx.snap | 0 .../donut_chart_legend_row.test.tsx.snap | 0 .../duration_charts.test.tsx.snap | 0 .../monitor_bar_series.test.tsx.snap | 0 .../__snapshots__/ping_histogram.test.tsx.snap | 0 .../{__tests__ => }/chart_empty_state.test.tsx | 2 +- .../{__tests__ => }/chart_wrapper.test.tsx | 6 +++--- .../{__tests__ => }/donut_chart.test.tsx | 2 +- .../donut_chart_legend.test.tsx | 4 ++-- .../donut_chart_legend_row.test.tsx | 2 +- .../{__tests__ => }/duration_charts.test.tsx | 6 +++--- .../{__tests__ => }/get_tick_format.test.ts | 2 +- .../monitor_bar_series.test.tsx | 6 +++--- .../{__tests__ => }/ping_histogram.test.tsx | 4 ++-- .../charts/{__tests__ => }/utils.test.ts | 2 +- .../__snapshots__/page_header.test.tsx.snap | 0 .../{__tests__ => }/page_header.test.tsx | 4 ++-- .../responsive_wrapper.test.tsx.snap | 0 .../responsive_wrapper.test.tsx | 2 +- .../{__tests__ => }/location_link.test.tsx | 2 +- .../{__tests__ => }/monitor_page_link.test.tsx | 2 +- .../{__tests__ => }/monitor_tags.test.tsx | 6 +++--- .../{__tests__ => }/link_events.test.ts | 2 +- .../{__tests__ => }/link_for_eui.test.tsx | 6 +++--- .../uptime_date_picker.test.tsx | 10 +++++----- .../__snapshots__/monitor_charts.test.tsx.snap | 0 .../__snapshots__/confirm_delete.test.tsx.snap | 0 .../__snapshots__/license_info.test.tsx.snap | 0 .../__snapshots__/ml_flyout.test.tsx.snap | 0 .../ml_integerations.test.tsx.snap | 0 .../__snapshots__/ml_job_link.test.tsx.snap | 0 .../__snapshots__/ml_manage_job.test.tsx.snap | 0 .../ml/{__tests__ => }/confirm_delete.test.tsx | 2 +- .../ml/{__tests__ => }/license_info.test.tsx | 2 +- .../ml/{__tests__ => }/ml_flyout.test.tsx | 6 +++--- .../{__tests__ => }/ml_integerations.test.tsx | 6 +++--- .../ml/{__tests__ => }/ml_job_link.test.tsx | 6 +++--- .../ml/{__tests__ => }/ml_manage_job.test.tsx | 6 +++--- .../{__tests__ => }/monitor_charts.test.tsx | 4 ++-- .../__snapshots__/doc_link_body.test.tsx.snap | 0 .../__snapshots__/expanded_row.test.tsx.snap | 0 .../__snapshots__/ping_headers.test.tsx.snap | 0 .../__snapshots__/ping_list.test.tsx.snap | 0 .../__snapshots__/ping_timestamp.test.tsx.snap | 0 .../{__tests__ => }/ping_timestamp.test.tsx | 8 ++++---- .../{__tests__ => }/doc_link_body.test.tsx | 2 +- .../{__tests__ => }/expanded_row.test.tsx | 6 +++--- .../{__tests__ => }/ping_headers.test.tsx | 2 +- .../{__tests__ => }/ping_list.test.tsx | 12 ++++++------ .../monitor_status.bar.test.tsx.snap | 0 .../ssl_certificate.test.tsx.snap | 0 .../status_by_location.test.tsx.snap | 0 .../availability_reporting.test.tsx.snap | 0 .../location_status_tags.test.tsx.snap | 0 .../__snapshots__/tag_label.test.tsx.snap | 0 .../availability_reporting.test.tsx | 4 ++-- .../location_status_tags.test.tsx | 6 +++--- .../{__tests__ => }/tag_label.test.tsx | 2 +- .../location_availability.test.tsx.snap | 0 .../location_availability.test.tsx | 6 +++--- .../__snapshots__/location_map.test.tsx.snap | 0 .../location_missing.test.tsx.snap | 0 .../{__tests__ => }/map_config.test.ts | 8 ++++---- .../__mocks__ => }/poly_layer_mock.ts | 2 +- .../{__tests__ => }/location_map.test.tsx | 4 ++-- .../{__tests__ => }/location_missing.test.tsx | 2 +- .../{__test__ => }/monitor_status.bar.test.tsx | 6 +++--- .../{__test__ => }/ssl_certificate.test.tsx | 8 ++++---- .../{__test__ => }/status_by_location.test.tsx | 4 ++-- .../browser_expanded_row.test.tsx | 4 ++-- .../{__tests__ => }/console_event.test.tsx | 2 +- .../console_output_event_list.test.tsx | 2 +- .../{__tests__ => }/empty_journey.test.tsx | 2 +- .../{__tests__ => }/executed_journey.test.tsx | 4 ++-- .../{__tests__ => }/executed_step.test.tsx | 6 +++--- .../{__tests__ => }/status_badge.test.tsx | 2 +- .../use_monitor_breadcrumbs.test.tsx | 12 ++++++------ .../step_screenshot_display.test.tsx | 2 +- .../parsing_error_callout.test.tsx.snap | 0 .../__snapshots__/snapshot.test.tsx.snap | 0 .../snapshot_heading.test.tsx.snap | 0 .../{__tests__ => }/add_filter_btn.test.tsx | 2 +- .../alert_field_number.test.tsx | 2 +- .../alert_monitor_status.test.tsx | 2 +- .../down_number_select.test.tsx.snap | 0 .../time_expression_select.test.tsx.snap | 0 .../down_number_select.test.tsx | 2 +- .../filters_expression_select.test.tsx | 2 +- .../time_expression_select.test.tsx | 2 +- .../{__tests__ => }/old_alert_callout.test.tsx | 2 +- .../data_or_index_missing.test.tsx.snap | 0 .../__snapshots__/empty_state.test.tsx.snap | 0 .../data_or_index_missing.test.tsx | 2 +- .../{__tests__ => }/empty_state.test.tsx | 6 +++--- .../__snapshots__/filter_popover.test.tsx.snap | 0 .../parse_filter_map.test.ts.snap | 0 .../{__tests__ => }/filter_popover.test.tsx | 4 ++-- .../{__tests__ => }/parse_filter_map.test.ts | 2 +- .../toggle_selected_item.test.ts | 2 +- .../filter_status_button.test.tsx.snap | 0 .../__snapshots__/monitor_list.test.tsx.snap | 0 .../__snapshots__/status_filter.test.tsx.snap | 0 .../__snapshots__/enable_alert.test.tsx.snap | 0 .../monitor_status_column.test.tsx.snap | 0 .../{__tests__ => }/enable_alert.test.tsx | 8 ++++---- .../monitor_status_column.test.tsx | 8 ++++---- .../filter_status_button.test.tsx | 4 ++-- .../{__tests__ => }/monitor_list.test.tsx | 12 ++++++------ .../integration_group.test.tsx.snap | 0 .../integration_link.test.tsx.snap | 0 .../monitor_list_drawer.test.tsx.snap | 0 .../monitor_status_list.test.tsx.snap | 0 .../monitor_status_row.test.tsx.snap | 0 .../most_recent_error.test.tsx.snap | 0 .../{__tests__ => }/data.json | 0 .../{__tests__ => }/integration_group.test.tsx | 4 ++-- .../{__tests__ => }/integration_link.test.tsx | 2 +- .../monitor_list_drawer.test.tsx | 6 +++--- .../monitor_status_list.test.tsx | 4 ++-- .../monitor_status_row.test.tsx | 2 +- .../{__tests__ => }/most_recent_error.test.tsx | 4 ++-- .../monitor_list_page_size_select.test.tsx | 2 +- .../{__tests__ => }/parse_timestamp.test.ts | 2 +- .../{__tests__ => }/status_filter.test.tsx | 6 +++--- .../parsing_error_callout.test.tsx | 2 +- .../overview/{__tests__ => }/snapshot.test.tsx | 4 ++-- .../{__tests__ => }/snapshot_heading.test.tsx | 2 +- .../synthetics_callout.test.tsx | 2 +- .../certificate_form.test.tsx.snap | 0 .../__snapshots__/indices_form.test.tsx.snap | 0 .../{__tests__ => }/certificate_form.test.tsx | 4 ++-- .../{__tests__ => }/indices_form.test.tsx | 4 ++-- .../__snapshots__/use_url_params.test.tsx.snap | 0 .../{__tests__ => }/use_breadcrumbs.test.tsx | 10 +++++----- .../{__tests__ => }/use_url_params.test.tsx | 6 +++--- .../{__tests__ => }/monitor_status.test.ts | 4 ++-- .../{__tests__ => }/get_label_format.test.ts | 2 +- .../is_within_current_date.test.ts | 2 +- .../convert_measurements.test.ts | 2 +- .../{__tests__ => }/get_apm_href.test.ts | 4 ++-- .../{__tests__ => }/get_infra_href.test.ts | 4 ++-- .../{__tests__ => }/get_logging_href.test.ts | 4 ++-- .../series_has_down_values.test.ts | 2 +- .../stringify_url_params.test.ts | 2 +- .../get_supported_url_params.test.ts.snap | 0 .../get_supported_url_params.test.ts | 4 ++-- .../parse_absolute_date.test.ts | 2 +- .../parse_autorefresh_interval.test.ts | 2 +- .../{__tests__ => }/parse_is_paused.test.ts | 2 +- .../{__tests__ => }/parse_url_int.test.ts | 2 +- .../__snapshots__/certificates.test.tsx.snap | 0 .../__snapshots__/monitor.test.tsx.snap | 0 .../__snapshots__/not_found.test.tsx.snap | 0 .../__snapshots__/overview.test.tsx.snap | 0 .../{__tests__ => }/certificates.test.tsx | 4 ++-- .../pages/{__tests__ => }/monitor.test.tsx | 4 ++-- .../pages/{__tests__ => }/not_found.test.tsx | 4 ++-- .../pages/{__tests__ => }/overview.test.tsx | 4 ++-- .../pages/{__tests__ => }/settings.test.tsx | 2 +- .../overview_filters.test.ts.snap | 0 .../{__tests__ => }/overview_filters.test.ts | 2 +- .../__snapshots__/snapshot.test.ts.snap | 0 .../state/api/{__tests__ => }/snapshot.test.ts | 4 ++-- .../{__tests__ => }/fetch_effect.test.ts | 8 ++++---- .../__snapshots__/snapshot.test.ts.snap | 0 .../__snapshots__/ui.test.ts.snap | 0 .../reducers/{__tests__ => }/snapshot.test.ts | 4 ++-- .../state/reducers/{__tests__ => }/ui.test.ts | 4 ++-- .../selectors/{__tests__ => }/index.test.ts | 6 +++--- .../kibana_telemetry_adapter.test.ts.snap | 0 .../kibana_telemetry_adapter.test.ts | 2 +- .../lib/alerts/{__tests__ => }/common.test.ts | 2 +- .../{__tests__ => }/status_check.test.ts | 18 +++++++++--------- .../lib/alerts/{__tests__ => }/tls.test.ts | 4 ++-- .../__snapshots__/license.test.ts.snap | 0 .../domains/{__tests__ => }/license.test.ts | 4 ++-- .../__snapshots__/assert_close_to.test.ts.snap | 0 .../get_filter_clause.test.ts.snap | 0 .../{__test__ => }/assert_close_to.test.ts | 2 +- .../{__test__ => }/get_filter_clause.test.ts | 2 +- .../get_histogram_interval.test.ts | 4 ++-- .../{__test__ => }/parse_relative_date.test.ts | 2 +- .../monitor_charts_mock.json | 0 .../generate_filter_aggs.test.ts.snap | 0 .../get_monitor_charts.test.ts.snap | 0 .../get_ping_histogram.test.ts.snap | 0 .../combine_range_with_filters.test.ts | 2 +- .../generate_filter_aggs.test.ts | 2 +- .../requests/{__tests__ => }/get_certs.test.ts | 2 +- .../{__tests__ => }/get_latest_monitor.test.ts | 4 ++-- .../get_monitor_availability.test.ts | 4 ++-- .../{__tests__ => }/get_monitor_charts.test.ts | 4 ++-- .../{__tests__ => }/get_monitor_status.test.ts | 2 +- .../{__tests__ => }/get_network_events.test.ts | 2 +- .../{__tests__ => }/get_ping_histogram.test.ts | 4 ++-- .../requests/{__tests__ => }/get_pings.test.ts | 4 ++-- .../lib/requests/{__tests__ => }/helper.ts | 6 +++--- .../monitor_summary_iterator.test.ts | 6 +++--- .../{__tests__ => }/query_context.test.ts | 8 ++++---- .../search/{__tests__ => }/test_helpers.ts | 8 ++++---- .../{__tests__ => }/dynamic_settings.test.ts | 2 +- 221 files changed, 279 insertions(+), 279 deletions(-) rename x-pack/plugins/uptime/common/lib/{__tests__ => }/__snapshots__/stringify_kueries.test.ts.snap (100%) rename x-pack/plugins/uptime/common/lib/{__tests__ => }/combine_filters_and_user_search.test.ts (90%) rename x-pack/plugins/uptime/common/lib/{__tests__ => }/ml.test.ts (96%) rename x-pack/plugins/uptime/common/lib/{__tests__ => }/stringify_kueries.test.ts (98%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/__snapshots__/cert_monitors.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/__snapshots__/cert_search.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/__snapshots__/cert_status.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/__snapshots__/certificates_list.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/__snapshots__/fingerprint_col.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/cert_monitors.test.tsx (88%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/cert_search.test.tsx (84%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/cert_status.test.tsx (92%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/certificates_list.test.tsx (84%) rename x-pack/plugins/uptime/public/components/certificates/{__tests__ => }/fingerprint_col.test.tsx (90%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/__snapshots__/location_link.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/__snapshots__/monitor_page_link.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/__snapshots__/monitor_tags.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/__snapshots__/uptime_date_picker.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/chart_empty_state.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/chart_wrapper.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/donut_chart.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/donut_chart_legend_row.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/duration_charts.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/monitor_bar_series.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/__snapshots__/ping_histogram.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/chart_empty_state.test.tsx (94%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/chart_wrapper.test.tsx (93%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/donut_chart.test.tsx (96%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/donut_chart_legend.test.tsx (88%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/donut_chart_legend_row.test.tsx (90%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/duration_charts.test.tsx (90%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/get_tick_format.test.ts (90%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/monitor_bar_series.test.tsx (95%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/ping_histogram.test.tsx (97%) rename x-pack/plugins/uptime/public/components/common/charts/{__tests__ => }/utils.test.ts (92%) rename x-pack/plugins/uptime/public/components/common/header/{__tests__ => }/__snapshots__/page_header.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/header/{__tests__ => }/page_header.test.tsx (95%) rename x-pack/plugins/uptime/public/components/common/higher_order/{__tests__ => }/__snapshots__/responsive_wrapper.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/common/higher_order/{__tests__ => }/responsive_wrapper.test.tsx (93%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/location_link.test.tsx (93%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/monitor_page_link.test.tsx (93%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/monitor_tags.test.tsx (97%) rename x-pack/plugins/uptime/public/components/common/react_router_helpers/{__tests__ => }/link_events.test.ts (98%) rename x-pack/plugins/uptime/public/components/common/react_router_helpers/{__tests__ => }/link_for_eui.test.tsx (91%) rename x-pack/plugins/uptime/public/components/common/{__tests__ => }/uptime_date_picker.test.tsx (89%) rename x-pack/plugins/uptime/public/components/monitor/{__tests__ => }/__snapshots__/monitor_charts.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/confirm_delete.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/license_info.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/ml_flyout.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/ml_integerations.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/ml_job_link.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/__snapshots__/ml_manage_job.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/confirm_delete.test.tsx (93%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/license_info.test.tsx (94%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/ml_flyout.test.tsx (93%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/ml_integerations.test.tsx (82%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/ml_job_link.test.tsx (82%) rename x-pack/plugins/uptime/public/components/monitor/ml/{__tests__ => }/ml_manage_job.test.tsx (85%) rename x-pack/plugins/uptime/public/components/monitor/{__tests__ => }/monitor_charts.test.tsx (88%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/__snapshots__/doc_link_body.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/__snapshots__/expanded_row.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/__snapshots__/ping_headers.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/__snapshots__/ping_list.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/columns/{__tests__ => }/__snapshots__/ping_timestamp.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/columns/{__tests__ => }/ping_timestamp.test.tsx (88%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/doc_link_body.test.tsx (90%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/expanded_row.test.tsx (95%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/ping_headers.test.tsx (96%) rename x-pack/plugins/uptime/public/components/monitor/ping_list/{__tests__ => }/ping_list.test.tsx (92%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/__snapshots__/monitor_status.bar.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/__snapshots__/ssl_certificate.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/__snapshots__/status_by_location.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/__snapshots__/availability_reporting.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/__snapshots__/location_status_tags.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/__snapshots__/tag_label.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/availability_reporting.test.tsx (92%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/location_status_tags.test.tsx (96%) rename x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/{__tests__ => }/tag_label.test.tsx (95%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/{__tests__ => }/__snapshots__/location_availability.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/{__tests__ => }/location_availability.test.tsx (95%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/{__tests__ => }/__snapshots__/location_map.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/{__tests__ => }/__snapshots__/location_missing.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/{__tests__ => }/map_config.test.ts (85%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/{__tests__/__mocks__ => }/poly_layer_mock.ts (98%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/{__tests__ => }/location_map.test.tsx (89%) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/{__tests__ => }/location_missing.test.tsx (92%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/monitor_status.bar.test.tsx (91%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/ssl_certificate.test.tsx (93%) rename x-pack/plugins/uptime/public/components/monitor/status_details/{__test__ => }/status_by_location.test.tsx (97%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/browser_expanded_row.test.tsx (97%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/console_event.test.tsx (98%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/console_output_event_list.test.tsx (98%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/empty_journey.test.tsx (98%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/executed_journey.test.tsx (98%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/executed_step.test.tsx (98%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/status_badge.test.tsx (95%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/{__tests__ => }/use_monitor_breadcrumbs.test.tsx (84%) rename x-pack/plugins/uptime/public/components/monitor/synthetics/{__tests__ => }/step_screenshot_display.test.tsx (98%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/__snapshots__/parsing_error_callout.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/__snapshots__/snapshot.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/__snapshots__/snapshot_heading.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/alerts/{__tests__ => }/add_filter_btn.test.tsx (98%) rename x-pack/plugins/uptime/public/components/overview/alerts/{__tests__ => }/alert_field_number.test.tsx (99%) rename x-pack/plugins/uptime/public/components/overview/alerts/{__tests__ => }/alert_monitor_status.test.tsx (99%) rename x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/{__tests__ => }/__snapshots__/down_number_select.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/{__tests__ => }/__snapshots__/time_expression_select.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/{__tests__ => }/down_number_select.test.tsx (92%) rename x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/{__tests__ => }/filters_expression_select.test.tsx (98%) rename x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/{__tests__ => }/time_expression_select.test.tsx (92%) rename x-pack/plugins/uptime/public/components/overview/alerts/{__tests__ => }/old_alert_callout.test.tsx (95%) rename x-pack/plugins/uptime/public/components/overview/empty_state/{__tests__ => }/__snapshots__/data_or_index_missing.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/empty_state/{__tests__ => }/__snapshots__/empty_state.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/empty_state/{__tests__ => }/data_or_index_missing.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/empty_state/{__tests__ => }/empty_state.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/filter_group/{__tests__ => }/__snapshots__/filter_popover.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/filter_group/{__tests__ => }/__snapshots__/parse_filter_map.test.ts.snap (100%) rename x-pack/plugins/uptime/public/components/overview/filter_group/{__tests__ => }/filter_popover.test.tsx (94%) rename x-pack/plugins/uptime/public/components/overview/filter_group/{__tests__ => }/parse_filter_map.test.ts (92%) rename x-pack/plugins/uptime/public/components/overview/filter_group/{__tests__ => }/toggle_selected_item.test.ts (92%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/__snapshots__/filter_status_button.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/__snapshots__/monitor_list.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/__snapshots__/status_filter.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/columns/{__tests__ => }/__snapshots__/enable_alert.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/columns/{__tests__ => }/__snapshots__/monitor_status_column.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/columns/{__tests__ => }/enable_alert.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/columns/{__tests__ => }/monitor_status_column.test.tsx (95%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/filter_status_button.test.tsx (89%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/monitor_list.test.tsx (94%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/integration_group.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/integration_link.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/monitor_list_drawer.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/monitor_status_list.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/monitor_status_row.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/__snapshots__/most_recent_error.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/data.json (100%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/integration_group.test.tsx (95%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/integration_link.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/monitor_list_drawer.test.tsx (94%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/monitor_status_list.test.tsx (96%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/monitor_status_row.test.tsx (94%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/{__tests__ => }/most_recent_error.test.tsx (92%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/monitor_list_page_size_select.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/parse_timestamp.test.ts (94%) rename x-pack/plugins/uptime/public/components/overview/monitor_list/{__tests__ => }/status_filter.test.tsx (94%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/parsing_error_callout.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/snapshot.test.tsx (83%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/snapshot_heading.test.tsx (93%) rename x-pack/plugins/uptime/public/components/overview/{__tests__ => }/synthetics_callout.test.tsx (98%) rename x-pack/plugins/uptime/public/components/settings/{__tests__ => }/__snapshots__/certificate_form.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/settings/{__tests__ => }/__snapshots__/indices_form.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/components/settings/{__tests__ => }/certificate_form.test.tsx (95%) rename x-pack/plugins/uptime/public/components/settings/{__tests__ => }/indices_form.test.tsx (89%) rename x-pack/plugins/uptime/public/hooks/{__tests__ => }/__snapshots__/use_url_params.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/hooks/{__tests__ => }/use_breadcrumbs.test.tsx (85%) rename x-pack/plugins/uptime/public/hooks/{__tests__ => }/use_url_params.test.tsx (95%) rename x-pack/plugins/uptime/public/lib/alert_types/{__tests__ => }/monitor_status.test.ts (98%) rename x-pack/plugins/uptime/public/lib/helper/charts/{__tests__ => }/get_label_format.test.ts (97%) rename x-pack/plugins/uptime/public/lib/helper/charts/{__tests__ => }/is_within_current_date.test.ts (92%) rename x-pack/plugins/uptime/public/lib/helper/{__tests__ => }/convert_measurements.test.ts (90%) rename x-pack/plugins/uptime/public/lib/helper/observability_integration/{__tests__ => }/get_apm_href.test.ts (93%) rename x-pack/plugins/uptime/public/lib/helper/observability_integration/{__tests__ => }/get_infra_href.test.ts (98%) rename x-pack/plugins/uptime/public/lib/helper/observability_integration/{__tests__ => }/get_logging_href.test.ts (97%) rename x-pack/plugins/uptime/public/lib/helper/{__tests__ => }/series_has_down_values.test.ts (91%) rename x-pack/plugins/uptime/public/lib/helper/{__tests__ => }/stringify_url_params.test.ts (96%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/__snapshots__/get_supported_url_params.test.ts.snap (100%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/get_supported_url_params.test.ts (94%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/parse_absolute_date.test.ts (94%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/parse_autorefresh_interval.test.ts (93%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/parse_is_paused.test.ts (92%) rename x-pack/plugins/uptime/public/lib/helper/url_params/{__tests__ => }/parse_url_int.test.ts (93%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/__snapshots__/certificates.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/__snapshots__/monitor.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/__snapshots__/not_found.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/__snapshots__/overview.test.tsx.snap (100%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/certificates.test.tsx (82%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/monitor.test.tsx (83%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/not_found.test.tsx (83%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/overview.test.tsx (95%) rename x-pack/plugins/uptime/public/pages/{__tests__ => }/settings.test.tsx (95%) rename x-pack/plugins/uptime/public/state/actions/{__tests__ => }/__snapshots__/overview_filters.test.ts.snap (100%) rename x-pack/plugins/uptime/public/state/actions/{__tests__ => }/overview_filters.test.ts (97%) rename x-pack/plugins/uptime/public/state/api/{__tests__ => }/__snapshots__/snapshot.test.ts.snap (100%) rename x-pack/plugins/uptime/public/state/api/{__tests__ => }/snapshot.test.ts (96%) rename x-pack/plugins/uptime/public/state/effects/{__tests__ => }/fetch_effect.test.ts (91%) rename x-pack/plugins/uptime/public/state/reducers/{__tests__ => }/__snapshots__/snapshot.test.ts.snap (100%) rename x-pack/plugins/uptime/public/state/reducers/{__tests__ => }/__snapshots__/ui.test.ts.snap (100%) rename x-pack/plugins/uptime/public/state/reducers/{__tests__ => }/snapshot.test.ts (95%) rename x-pack/plugins/uptime/public/state/reducers/{__tests__ => }/ui.test.ts (97%) rename x-pack/plugins/uptime/public/state/selectors/{__tests__ => }/index.test.ts (94%) rename x-pack/plugins/uptime/server/lib/adapters/telemetry/{__tests__ => }/__snapshots__/kibana_telemetry_adapter.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/adapters/telemetry/{__tests__ => }/kibana_telemetry_adapter.test.ts (97%) rename x-pack/plugins/uptime/server/lib/alerts/{__tests__ => }/common.test.ts (99%) rename x-pack/plugins/uptime/server/lib/alerts/{__tests__ => }/status_check.test.ts (98%) rename x-pack/plugins/uptime/server/lib/alerts/{__tests__ => }/tls.test.ts (98%) rename x-pack/plugins/uptime/server/lib/domains/{__tests__ => }/__snapshots__/license.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/domains/{__tests__ => }/license.test.ts (91%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/__snapshots__/assert_close_to.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/__snapshots__/get_filter_clause.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/assert_close_to.test.ts (93%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/get_filter_clause.test.ts (93%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/get_histogram_interval.test.ts (86%) rename x-pack/plugins/uptime/server/lib/helper/{__test__ => }/parse_relative_date.test.ts (92%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => __fixtures__}/monitor_charts_mock.json (100%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/__snapshots__/generate_filter_aggs.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/__snapshots__/get_monitor_charts.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/__snapshots__/get_ping_histogram.test.ts.snap (100%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/combine_range_with_filters.test.ts (97%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/generate_filter_aggs.test.ts (93%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_certs.test.ts (99%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_latest_monitor.test.ts (95%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_monitor_availability.test.ts (99%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_monitor_charts.test.ts (91%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_monitor_status.test.ts (99%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_network_events.test.ts (99%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_ping_histogram.test.ts (97%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/get_pings.test.ts (99%) rename x-pack/plugins/uptime/server/lib/requests/{__tests__ => }/helper.ts (92%) rename x-pack/plugins/uptime/server/lib/requests/search/{__tests__ => }/monitor_summary_iterator.test.ts (96%) rename x-pack/plugins/uptime/server/lib/requests/search/{__tests__ => }/query_context.test.ts (91%) rename x-pack/plugins/uptime/server/lib/requests/search/{__tests__ => }/test_helpers.ts (72%) rename x-pack/plugins/uptime/server/rest_api/{__tests__ => }/dynamic_settings.test.ts (97%) diff --git a/x-pack/plugins/uptime/common/lib/__tests__/__snapshots__/stringify_kueries.test.ts.snap b/x-pack/plugins/uptime/common/lib/__snapshots__/stringify_kueries.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/common/lib/__tests__/__snapshots__/stringify_kueries.test.ts.snap rename to x-pack/plugins/uptime/common/lib/__snapshots__/stringify_kueries.test.ts.snap diff --git a/x-pack/plugins/uptime/common/lib/__tests__/combine_filters_and_user_search.test.ts b/x-pack/plugins/uptime/common/lib/combine_filters_and_user_search.test.ts similarity index 90% rename from x-pack/plugins/uptime/common/lib/__tests__/combine_filters_and_user_search.test.ts rename to x-pack/plugins/uptime/common/lib/combine_filters_and_user_search.test.ts index 6c8c175398a91..c72d4a8ca10aa 100644 --- a/x-pack/plugins/uptime/common/lib/__tests__/combine_filters_and_user_search.test.ts +++ b/x-pack/plugins/uptime/common/lib/combine_filters_and_user_search.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { combineFiltersAndUserSearch } from '../combine_filters_and_user_search'; +import { combineFiltersAndUserSearch } from './combine_filters_and_user_search'; describe('combineFiltersAndUserSearch', () => { it('returns only search if filters are empty', () => { diff --git a/x-pack/plugins/uptime/common/lib/__tests__/ml.test.ts b/x-pack/plugins/uptime/common/lib/ml.test.ts similarity index 96% rename from x-pack/plugins/uptime/common/lib/__tests__/ml.test.ts rename to x-pack/plugins/uptime/common/lib/ml.test.ts index 122755638db7f..d75912a545d10 100644 --- a/x-pack/plugins/uptime/common/lib/__tests__/ml.test.ts +++ b/x-pack/plugins/uptime/common/lib/ml.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getMLJobId } from '../ml'; +import { getMLJobId } from './ml'; describe('ML Anomaly API', () => { it('it generates a lowercase job id', async () => { diff --git a/x-pack/plugins/uptime/common/lib/__tests__/stringify_kueries.test.ts b/x-pack/plugins/uptime/common/lib/stringify_kueries.test.ts similarity index 98% rename from x-pack/plugins/uptime/common/lib/__tests__/stringify_kueries.test.ts rename to x-pack/plugins/uptime/common/lib/stringify_kueries.test.ts index 4c32b19765427..4dae8d5b061d0 100644 --- a/x-pack/plugins/uptime/common/lib/__tests__/stringify_kueries.test.ts +++ b/x-pack/plugins/uptime/common/lib/stringify_kueries.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { stringifyKueries } from '../stringify_kueries'; +import { stringifyKueries } from './stringify_kueries'; describe('stringifyKueries', () => { let kueries: Map; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_monitors.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_monitors.test.tsx.snap rename to x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_monitors.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_search.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap rename to x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_search.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_status.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_status.test.tsx.snap rename to x-pack/plugins/uptime/public/components/certificates/__snapshots__/cert_status.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__snapshots__/certificates_list.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/certificates_list.test.tsx.snap rename to x-pack/plugins/uptime/public/components/certificates/__snapshots__/certificates_list.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__snapshots__/fingerprint_col.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/fingerprint_col.test.tsx.snap rename to x-pack/plugins/uptime/public/components/certificates/__snapshots__/fingerprint_col.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_monitors.test.tsx b/x-pack/plugins/uptime/public/components/certificates/cert_monitors.test.tsx similarity index 88% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/cert_monitors.test.tsx rename to x-pack/plugins/uptime/public/components/certificates/cert_monitors.test.tsx index bc4c770d5cd24..00df627155821 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_monitors.test.tsx +++ b/x-pack/plugins/uptime/public/components/certificates/cert_monitors.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { CertMonitors } from '../cert_monitors'; -import { renderWithRouter, shallowWithRouter } from '../../../lib'; +import { CertMonitors } from './cert_monitors'; +import { renderWithRouter, shallowWithRouter } from '../../lib'; describe('CertMonitors', () => { const certMons = [ diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_search.test.tsx b/x-pack/plugins/uptime/public/components/certificates/cert_search.test.tsx similarity index 84% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/cert_search.test.tsx rename to x-pack/plugins/uptime/public/components/certificates/cert_search.test.tsx index 27d3bb18f17c2..58b63fa5453c1 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_search.test.tsx +++ b/x-pack/plugins/uptime/public/components/certificates/cert_search.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { renderWithRouter, shallowWithRouter } from '../../../lib'; -import { CertificateSearch } from '../cert_search'; +import { renderWithRouter, shallowWithRouter } from '../../lib'; +import { CertificateSearch } from './cert_search'; describe('CertificatesSearch', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_status.test.tsx b/x-pack/plugins/uptime/public/components/certificates/cert_status.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/cert_status.test.tsx rename to x-pack/plugins/uptime/public/components/certificates/cert_status.test.tsx index cc5e7015e83a8..a8f0acba912be 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/cert_status.test.tsx +++ b/x-pack/plugins/uptime/public/components/certificates/cert_status.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { renderWithRouter, shallowWithRouter } from '../../../lib'; -import { CertStatus } from '../cert_status'; +import { renderWithRouter, shallowWithRouter } from '../../lib'; +import { CertStatus } from './cert_status'; import * as redux from 'react-redux'; import moment from 'moment'; diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/certificates_list.test.tsx b/x-pack/plugins/uptime/public/components/certificates/certificates_list.test.tsx similarity index 84% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/certificates_list.test.tsx rename to x-pack/plugins/uptime/public/components/certificates/certificates_list.test.tsx index a8b60900ec65c..9704665baa9bb 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/certificates_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/certificates/certificates_list.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { shallowWithRouter } from '../../../lib'; -import { CertificateList, CertSort } from '../certificates_list'; +import { shallowWithRouter } from '../../lib'; +import { CertificateList, CertSort } from './certificates_list'; describe('CertificateList', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/fingerprint_col.test.tsx b/x-pack/plugins/uptime/public/components/certificates/fingerprint_col.test.tsx similarity index 90% rename from x-pack/plugins/uptime/public/components/certificates/__tests__/fingerprint_col.test.tsx rename to x-pack/plugins/uptime/public/components/certificates/fingerprint_col.test.tsx index 31de7d7052e68..a681f0cba64e5 100644 --- a/x-pack/plugins/uptime/public/components/certificates/__tests__/fingerprint_col.test.tsx +++ b/x-pack/plugins/uptime/public/components/certificates/fingerprint_col.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { renderWithRouter, shallowWithRouter } from '../../../lib'; -import { FingerprintCol } from '../fingerprint_col'; +import { renderWithRouter, shallowWithRouter } from '../../lib'; +import { FingerprintCol } from './fingerprint_col'; import moment from 'moment'; describe('FingerprintCol', () => { diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/location_link.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/__snapshots__/location_link.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/location_link.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/__snapshots__/location_link.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/monitor_page_link.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/__snapshots__/monitor_page_link.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/monitor_page_link.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/__snapshots__/monitor_page_link.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/monitor_tags.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/__snapshots__/monitor_tags.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/monitor_tags.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/__snapshots__/monitor_tags.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/__snapshots__/uptime_date_picker.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/__tests__/__snapshots__/uptime_date_picker.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/__snapshots__/uptime_date_picker.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/chart_empty_state.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/chart_empty_state.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/chart_empty_state.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/chart_empty_state.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/chart_wrapper.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/chart_wrapper.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/chart_wrapper.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/chart_wrapper.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/donut_chart.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/donut_chart.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/donut_chart_legend_row.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart_legend_row.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/donut_chart_legend_row.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart_legend_row.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/duration_charts.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/duration_charts.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/duration_charts.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/monitor_bar_series.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/monitor_bar_series.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/monitor_bar_series.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/ping_histogram.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/__snapshots__/ping_histogram.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/charts/__snapshots__/ping_histogram.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_empty_state.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/chart_empty_state.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_empty_state.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/chart_empty_state.test.tsx index 8f78e640a988a..666b2cbb19ab5 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_empty_state.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/chart_empty_state.test.tsx @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { ChartEmptyState } from '../chart_empty_state'; +import { ChartEmptyState } from './chart_empty_state'; import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n/react'; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_wrapper.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/chart_wrapper.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_wrapper.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/chart_wrapper.test.tsx index 2f11707bb3ab9..6c049ca125acb 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/chart_wrapper.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/chart_wrapper.test.tsx @@ -9,9 +9,9 @@ import { EuiSpacer } from '@elastic/eui'; import { mount } from 'enzyme'; import { nextTick } from '@kbn/test/jest'; import { shallowWithIntl } from '@kbn/test/jest'; -import { ChartWrapper } from '../chart_wrapper'; -import { SnapshotHeading } from '../../../overview/snapshot/snapshot_heading'; -import { DonutChart } from '../donut_chart'; +import { ChartWrapper } from './chart_wrapper'; +import { SnapshotHeading } from '../../overview/snapshot/snapshot_heading'; +import { DonutChart } from './donut_chart'; const SNAPSHOT_CHART_HEIGHT = 144; describe('ChartWrapper component', () => { it('renders the component with loading false', () => { diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/donut_chart.test.tsx similarity index 96% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/donut_chart.test.tsx index 56789b8e7374e..15b01b8567cfe 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/donut_chart.test.tsx @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { DonutChart } from '../donut_chart'; +import { DonutChart } from './donut_chart'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend.test.tsx similarity index 88% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend.test.tsx index 2ef02106e6e66..c3dc49e5630be 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import { renderWithIntl } from '@kbn/test/jest'; -import { DonutChartLegend } from '../donut_chart_legend'; +import { DonutChartLegend } from './donut_chart_legend'; -import { STATUS_DOWN_LABEL, STATUS_UP_LABEL } from '../../translations'; +import { STATUS_DOWN_LABEL, STATUS_UP_LABEL } from '../translations'; describe('DonutChartLegend', () => { it('applies valid props as expected', () => { diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend_row.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend_row.test.tsx similarity index 90% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend_row.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend_row.test.tsx index 868409ef831a8..1d92dda95ed6c 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/donut_chart_legend_row.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/donut_chart_legend_row.test.tsx @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { DonutChartLegendRow } from '../donut_chart_legend_row'; +import { DonutChartLegendRow } from './donut_chart_legend_row'; import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/duration_charts.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/duration_charts.test.tsx similarity index 90% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/duration_charts.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/duration_charts.test.tsx index 589fbc6bceb45..5822dc5d6084e 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/duration_charts.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/duration_charts.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import DateMath from '@elastic/datemath'; -import { DurationChartComponent } from '../duration_chart'; -import { MonitorDurationResult } from '../../../../../common/types'; -import { shallowWithRouter } from '../../../../lib'; +import { DurationChartComponent } from './duration_chart'; +import { MonitorDurationResult } from '../../../../common/types'; +import { shallowWithRouter } from '../../../lib'; describe('MonitorCharts component', () => { let dateMathSpy: any; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/get_tick_format.test.ts b/x-pack/plugins/uptime/public/components/common/charts/get_tick_format.test.ts similarity index 90% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/get_tick_format.test.ts rename to x-pack/plugins/uptime/public/components/common/charts/get_tick_format.test.ts index f743b1e97afa8..0b51ac506b904 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/get_tick_format.test.ts +++ b/x-pack/plugins/uptime/public/components/common/charts/get_tick_format.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getTickFormat } from '../get_tick_format'; +import { getTickFormat } from './get_tick_format'; describe('getTickFormat', () => { it('returns null if value is NaN', () => { diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/monitor_bar_series.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/monitor_bar_series.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/monitor_bar_series.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/monitor_bar_series.test.tsx index 0090a8c5f170b..8d478d8490af6 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/monitor_bar_series.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/monitor_bar_series.test.tsx @@ -5,9 +5,9 @@ */ import React from 'react'; -import { MonitorBarSeries, MonitorBarSeriesProps } from '../monitor_bar_series'; -import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../../lib'; -import { HistogramPoint } from '../../../../../common/runtime_types'; +import { MonitorBarSeries, MonitorBarSeriesProps } from './monitor_bar_series'; +import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../lib'; +import { HistogramPoint } from '../../../../common/runtime_types'; describe('MonitorBarSeries component', () => { let props: MonitorBarSeriesProps; diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/ping_histogram.test.tsx b/x-pack/plugins/uptime/public/components/common/charts/ping_histogram.test.tsx similarity index 97% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/ping_histogram.test.tsx rename to x-pack/plugins/uptime/public/components/common/charts/ping_histogram.test.tsx index fe14afbcdcfe4..154d4a8ee6c7f 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/ping_histogram.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/ping_histogram.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { PingHistogramComponent, PingHistogramComponentProps } from '../ping_histogram'; -import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../../lib'; +import { PingHistogramComponent, PingHistogramComponentProps } from './ping_histogram'; +import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../lib'; import moment from 'moment'; describe('PingHistogram component', () => { diff --git a/x-pack/plugins/uptime/public/components/common/charts/__tests__/utils.test.ts b/x-pack/plugins/uptime/public/components/common/charts/utils.test.ts similarity index 92% rename from x-pack/plugins/uptime/public/components/common/charts/__tests__/utils.test.ts rename to x-pack/plugins/uptime/public/components/common/charts/utils.test.ts index 45bb0538e900c..a6063e3556aac 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__tests__/utils.test.ts +++ b/x-pack/plugins/uptime/public/components/common/charts/utils.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getDateRangeFromChartElement } from '../utils'; +import { getDateRangeFromChartElement } from './utils'; import { XYChartElementEvent } from '@elastic/charts'; describe('Chart utils', () => { diff --git a/x-pack/plugins/uptime/public/components/common/header/__tests__/__snapshots__/page_header.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/header/__snapshots__/page_header.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/header/__tests__/__snapshots__/page_header.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/header/__snapshots__/page_header.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/header/__tests__/page_header.test.tsx b/x-pack/plugins/uptime/public/components/common/header/page_header.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/common/header/__tests__/page_header.test.tsx rename to x-pack/plugins/uptime/public/components/common/header/page_header.test.tsx index 0b72cc64f8102..cde87e736d09c 100644 --- a/x-pack/plugins/uptime/public/components/common/header/__tests__/page_header.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/header/page_header.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { PageHeader } from '../page_header'; -import { renderWithRouter, MountWithReduxProvider } from '../../../../lib'; +import { PageHeader } from './page_header'; +import { renderWithRouter, MountWithReduxProvider } from '../../../lib'; describe('PageHeader', () => { it('shallow renders with the date picker', () => { diff --git a/x-pack/plugins/uptime/public/components/common/higher_order/__tests__/__snapshots__/responsive_wrapper.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/higher_order/__snapshots__/responsive_wrapper.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/common/higher_order/__tests__/__snapshots__/responsive_wrapper.test.tsx.snap rename to x-pack/plugins/uptime/public/components/common/higher_order/__snapshots__/responsive_wrapper.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/common/higher_order/__tests__/responsive_wrapper.test.tsx b/x-pack/plugins/uptime/public/components/common/higher_order/responsive_wrapper.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/common/higher_order/__tests__/responsive_wrapper.test.tsx rename to x-pack/plugins/uptime/public/components/common/higher_order/responsive_wrapper.test.tsx index e5e2de8e6260e..9ca8953145743 100644 --- a/x-pack/plugins/uptime/public/components/common/higher_order/__tests__/responsive_wrapper.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/higher_order/responsive_wrapper.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { withResponsiveWrapper } from '../responsive_wrapper'; +import { withResponsiveWrapper } from './responsive_wrapper'; interface Prop { isResponsive: boolean; diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/location_link.test.tsx b/x-pack/plugins/uptime/public/components/common/location_link.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/common/__tests__/location_link.test.tsx rename to x-pack/plugins/uptime/public/components/common/location_link.test.tsx index b2220da9789fc..d125e01a88244 100644 --- a/x-pack/plugins/uptime/public/components/common/__tests__/location_link.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/location_link.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { LocationLink } from '../location_link'; +import { LocationLink } from './location_link'; describe('LocationLink component', () => { it('renders the location when present', () => { diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/monitor_page_link.test.tsx b/x-pack/plugins/uptime/public/components/common/monitor_page_link.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/common/__tests__/monitor_page_link.test.tsx rename to x-pack/plugins/uptime/public/components/common/monitor_page_link.test.tsx index 31d126f183393..0ef26b382edf5 100644 --- a/x-pack/plugins/uptime/public/components/common/__tests__/monitor_page_link.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/monitor_page_link.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { MonitorPageLink } from '../monitor_page_link'; +import { MonitorPageLink } from './monitor_page_link'; describe('MonitorPageLink component', () => { it('renders the link properly', () => { diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/monitor_tags.test.tsx b/x-pack/plugins/uptime/public/components/common/monitor_tags.test.tsx similarity index 97% rename from x-pack/plugins/uptime/public/components/common/__tests__/monitor_tags.test.tsx rename to x-pack/plugins/uptime/public/components/common/monitor_tags.test.tsx index a49f492221e3a..2c21dd1f8df22 100644 --- a/x-pack/plugins/uptime/public/components/common/__tests__/monitor_tags.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/monitor_tags.test.tsx @@ -6,9 +6,9 @@ import { render, fireEvent, screen } from '@testing-library/react'; import React from 'react'; import { MemoryRouter } from 'react-router-dom'; -import { MonitorTags } from '../monitor_tags'; -import * as hooks from '../../../hooks/use_url_params'; -import { renderWithRouter, shallowWithRouter } from '../../../lib'; +import { MonitorTags } from './monitor_tags'; +import * as hooks from '../../hooks/use_url_params'; +import { renderWithRouter, shallowWithRouter } from '../../lib'; describe('MonitorTags component', () => { const summaryPing = { diff --git a/x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_events.test.ts b/x-pack/plugins/uptime/public/components/common/react_router_helpers/link_events.test.ts similarity index 98% rename from x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_events.test.ts rename to x-pack/plugins/uptime/public/components/common/react_router_helpers/link_events.test.ts index 3e857c7c20904..82bad885fff3f 100644 --- a/x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_events.test.ts +++ b/x-pack/plugins/uptime/public/components/common/react_router_helpers/link_events.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { letBrowserHandleEvent } from '../index'; +import { letBrowserHandleEvent } from './index'; describe('letBrowserHandleEvent', () => { const event = { diff --git a/x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_for_eui.test.tsx b/x-pack/plugins/uptime/public/components/common/react_router_helpers/link_for_eui.test.tsx similarity index 91% rename from x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_for_eui.test.tsx rename to x-pack/plugins/uptime/public/components/common/react_router_helpers/link_for_eui.test.tsx index 845b597a8ad18..d83161f5e7ebb 100644 --- a/x-pack/plugins/uptime/public/components/common/react_router_helpers/__tests__/link_for_eui.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/react_router_helpers/link_for_eui.test.tsx @@ -8,10 +8,10 @@ import React from 'react'; import { shallow, mount } from 'enzyme'; import { EuiLink, EuiButton } from '@elastic/eui'; -import '../../../../lib/__mocks__/ut_router_history.mock'; +import '../../../lib/__mocks__/ut_router_history.mock'; -import { ReactRouterEuiLink, ReactRouterEuiButton } from '../link_for_eui'; -import { mockHistory } from '../../../../lib/__mocks__/ut_router_history.mock'; +import { ReactRouterEuiLink, ReactRouterEuiButton } from './link_for_eui'; +import { mockHistory } from '../../../lib/__mocks__/ut_router_history.mock'; describe('EUI & React Router Component Helpers', () => { beforeEach(() => { diff --git a/x-pack/plugins/uptime/public/components/common/__tests__/uptime_date_picker.test.tsx b/x-pack/plugins/uptime/public/components/common/uptime_date_picker.test.tsx similarity index 89% rename from x-pack/plugins/uptime/public/components/common/__tests__/uptime_date_picker.test.tsx rename to x-pack/plugins/uptime/public/components/common/uptime_date_picker.test.tsx index 18e058e305606..a7913b56bc796 100644 --- a/x-pack/plugins/uptime/public/components/common/__tests__/uptime_date_picker.test.tsx +++ b/x-pack/plugins/uptime/public/components/common/uptime_date_picker.test.tsx @@ -5,16 +5,16 @@ */ import React from 'react'; -import { UptimeDatePicker } from '../uptime_date_picker'; +import { UptimeDatePicker } from './uptime_date_picker'; import { renderWithRouter, shallowWithRouter, MountWithReduxProvider, mountWithRouterRedux, -} from '../../../lib'; -import { UptimeStartupPluginsContextProvider } from '../../../contexts'; -import { startPlugins } from '../../../lib/__mocks__/uptime_plugin_start_mock'; -import { ClientPluginsStart } from '../../../apps/plugin'; +} from '../../lib'; +import { UptimeStartupPluginsContextProvider } from '../../contexts'; +import { startPlugins } from '../../lib/__mocks__/uptime_plugin_start_mock'; +import { ClientPluginsStart } from '../../apps/plugin'; import { createMemoryHistory } from 'history'; describe('UptimeDatePicker component', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/__snapshots__/monitor_charts.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/__tests__/__snapshots__/monitor_charts.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/__snapshots__/monitor_charts.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/confirm_delete.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/confirm_delete.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/confirm_delete.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/confirm_delete.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/license_info.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/license_info.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/license_info.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/license_info.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_flyout.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_flyout.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_flyout.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_flyout.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_integerations.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_integerations.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_job_link.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_job_link.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_job_link.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_manage_job.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ml/__snapshots__/ml_manage_job.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/confirm_delete.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/confirm_delete.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/confirm_delete.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/confirm_delete.test.tsx index b598cb72ec21b..cf894870dab7d 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/confirm_delete.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/confirm_delete.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { ConfirmJobDeletion } from '../confirm_delete'; +import { ConfirmJobDeletion } from './confirm_delete'; describe('ML Confirm Job Delete', () => { it('shallow renders without errors', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/license_info.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/license_info.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/license_info.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/license_info.test.tsx index b2c700beaf343..cc8fa779633d0 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/license_info.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/license_info.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { ShowLicenseInfo } from '../license_info'; +import { ShowLicenseInfo } from './license_info'; import * as redux from 'react-redux'; describe('ShowLicenseInfo', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_flyout.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/ml_flyout.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_flyout.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/ml_flyout.test.tsx index f838ca63ef5f1..bb696f639ff44 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_flyout.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/ml_flyout.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { MLFlyoutView } from '../ml_flyout'; -import { UptimeSettingsContext } from '../../../../contexts'; -import { CLIENT_DEFAULTS } from '../../../../../common/constants'; +import { MLFlyoutView } from './ml_flyout'; +import { UptimeSettingsContext } from '../../../contexts'; +import { CLIENT_DEFAULTS } from '../../../../common/constants'; import * as redux from 'react-redux'; describe('ML Flyout component', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_integerations.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/ml_integerations.test.tsx similarity index 82% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_integerations.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/ml_integerations.test.tsx index 95774e3208168..600140c62ae37 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_integerations.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/ml_integerations.test.tsx @@ -5,10 +5,10 @@ */ import React from 'react'; -import { MLIntegrationComponent } from '../ml_integeration'; -import { renderWithRouter, shallowWithRouter } from '../../../../lib'; +import { MLIntegrationComponent } from './ml_integeration'; +import { renderWithRouter, shallowWithRouter } from '../../../lib'; import * as redux from 'react-redux'; -import { KibanaContextProvider } from '../../../../../../../../src/plugins/kibana_react/public'; +import { KibanaContextProvider } from '../../../../../../../src/plugins/kibana_react/public'; import { coreMock } from 'src/core/public/mocks'; const core = coreMock.createStart(); diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_job_link.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/ml_job_link.test.tsx similarity index 82% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_job_link.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/ml_job_link.test.tsx index 581fe1cbf9b10..18cab0fea55d9 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_job_link.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/ml_job_link.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import { coreMock } from 'src/core/public/mocks'; -import { renderWithRouter, shallowWithRouter } from '../../../../lib'; -import { MLJobLink } from '../ml_job_link'; -import { KibanaContextProvider } from '../../../../../../../../src/plugins/kibana_react/public'; +import { renderWithRouter, shallowWithRouter } from '../../../lib'; +import { MLJobLink } from './ml_job_link'; +import { KibanaContextProvider } from '../../../../../../../src/plugins/kibana_react/public'; const core = coreMock.createStart(); describe('ML JobLink', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_manage_job.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ml/ml_manage_job.test.tsx similarity index 85% rename from x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_manage_job.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ml/ml_manage_job.test.tsx index 0db6841c32aaf..3718154a9dfde 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ml/__tests__/ml_manage_job.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ml/ml_manage_job.test.tsx @@ -6,10 +6,10 @@ import React from 'react'; import { coreMock } from 'src/core/public/mocks'; -import { ManageMLJobComponent } from '../manage_ml_job'; +import { ManageMLJobComponent } from './manage_ml_job'; import * as redux from 'react-redux'; -import { renderWithRouter, shallowWithRouter } from '../../../../lib'; -import { KibanaContextProvider } from '../../../../../../../../src/plugins/kibana_react/public'; +import { renderWithRouter, shallowWithRouter } from '../../../lib'; +import { KibanaContextProvider } from '../../../../../../../src/plugins/kibana_react/public'; const core = coreMock.createStart(); describe('Manage ML Job', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/__tests__/monitor_charts.test.tsx b/x-pack/plugins/uptime/public/components/monitor/monitor_charts.test.tsx similarity index 88% rename from x-pack/plugins/uptime/public/components/monitor/__tests__/monitor_charts.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/monitor_charts.test.tsx index 3355eb63fd689..d7db9c1c0e538 100644 --- a/x-pack/plugins/uptime/public/components/monitor/__tests__/monitor_charts.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/monitor_charts.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import DateMath from '@elastic/datemath'; -import { MonitorCharts } from '../monitor_charts'; -import { shallowWithRouter } from '../../../lib'; +import { MonitorCharts } from './monitor_charts'; +import { shallowWithRouter } from '../../lib'; describe('MonitorCharts component', () => { let dateMathSpy: any; diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/doc_link_body.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/doc_link_body.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/doc_link_body.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/doc_link_body.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/expanded_row.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/expanded_row.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/expanded_row.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/expanded_row.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/ping_headers.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/ping_headers.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/ping_headers.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/ping_headers.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/ping_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/ping_list.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/__snapshots__/ping_list.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ping_list/__snapshots__/ping_list.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__tests__/__snapshots__/ping_timestamp.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__snapshots__/ping_timestamp.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__tests__/__snapshots__/ping_timestamp.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__snapshots__/ping_timestamp.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__tests__/ping_timestamp.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp.test.tsx similarity index 88% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__tests__/ping_timestamp.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp.test.tsx index c9302685a2aa8..558bdfc66a397 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/__tests__/ping_timestamp.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/columns/ping_timestamp.test.tsx @@ -6,10 +6,10 @@ import React from 'react'; import { shallowWithIntl, renderWithIntl } from '@kbn/test/jest'; -import { PingTimestamp } from '../ping_timestamp'; -import { mockReduxHooks } from '../../../../../lib/helper/test_helpers'; -import { Ping } from '../../../../../../common/runtime_types/ping'; -import { EuiThemeProvider } from '../../../../../../../observability/public'; +import { PingTimestamp } from './ping_timestamp'; +import { mockReduxHooks } from '../../../../lib/helper/test_helpers'; +import { Ping } from '../../../../../common/runtime_types/ping'; +import { EuiThemeProvider } from '../../../../../../observability/public'; mockReduxHooks(); diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/doc_link_body.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/doc_link_body.test.tsx similarity index 90% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/doc_link_body.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ping_list/doc_link_body.test.tsx index f8895f44ea084..f2748f26dced0 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/doc_link_body.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/doc_link_body.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { DocLinkForBody } from '../doc_link_body'; +import { DocLinkForBody } from './doc_link_body'; describe('PingListExpandedRow', () => { it('renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/expanded_row.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/expanded_row.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/expanded_row.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ping_list/expanded_row.test.tsx index 8a5b8b942e016..5f7d77749ff24 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/expanded_row.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/expanded_row.test.tsx @@ -6,9 +6,9 @@ import { mountWithIntl, renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { PingListExpandedRowComponent } from '../expanded_row'; -import { Ping } from '../../../../../common/runtime_types'; -import { DocLinkForBody } from '../doc_link_body'; +import { PingListExpandedRowComponent } from './expanded_row'; +import { Ping } from '../../../../common/runtime_types'; +import { DocLinkForBody } from './doc_link_body'; describe('PingListExpandedRow', () => { let ping: Ping; diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_headers.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/ping_headers.test.tsx similarity index 96% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_headers.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ping_list/ping_headers.test.tsx index 240a71e95b0ed..51ac572f25385 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_headers.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/ping_headers.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { PingHeaders } from '../headers'; +import { PingHeaders } from './headers'; describe('Ping Headers', () => { const headers = { diff --git a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_list.test.tsx b/x-pack/plugins/uptime/public/components/monitor/ping_list/ping_list.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_list.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/ping_list/ping_list.test.tsx index fe101c04e9976..d0fac09f683fc 100644 --- a/x-pack/plugins/uptime/public/components/monitor/ping_list/__tests__/ping_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/ping_list/ping_list.test.tsx @@ -6,12 +6,12 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { PingList } from '../ping_list'; -import { Ping, PingsResponse } from '../../../../../common/runtime_types'; -import { ExpandedRowMap } from '../../../overview/monitor_list/types'; -import { rowShouldExpand, toggleDetails } from '../columns/expand_row'; -import * as pingListHook from '../use_pings'; -import { mockReduxHooks } from '../../../../lib/helper/test_helpers'; +import { PingList } from './ping_list'; +import { Ping, PingsResponse } from '../../../../common/runtime_types'; +import { ExpandedRowMap } from '../../overview/monitor_list/types'; +import { rowShouldExpand, toggleDetails } from './columns/expand_row'; +import * as pingListHook from './use_pings'; +import { mockReduxHooks } from '../../../lib/helper/test_helpers'; mockReduxHooks(); diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/monitor_status.bar.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/monitor_status.bar.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/monitor_status.bar.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/monitor_status.bar.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/ssl_certificate.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/ssl_certificate.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/ssl_certificate.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/status_by_location.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/status_by_location.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/__snapshots__/status_by_location.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/__snapshots__/status_by_location.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/availability_reporting.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/availability_reporting.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/availability_reporting.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/availability_reporting.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/location_status_tags.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/location_status_tags.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/location_status_tags.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/location_status_tags.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/tag_label.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/tag_label.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/__snapshots__/tag_label.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__snapshots__/tag_label.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/availability_reporting.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/availability_reporting.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/availability_reporting.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/availability_reporting.test.tsx index d98f25df23dd9..c4446c46aa46e 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/availability_reporting.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/availability_reporting.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { AvailabilityReporting } from '../availability_reporting'; -import { StatusTag } from '../location_status_tags'; +import { AvailabilityReporting } from './availability_reporting'; +import { StatusTag } from './location_status_tags'; jest.mock('@elastic/eui/lib/services/accessibility/html_id_generator', () => { return { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/location_status_tags.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/location_status_tags.test.tsx similarity index 96% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/location_status_tags.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/location_status_tags.test.tsx index 265b7f7459e22..8f8d6eae5f458 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/location_status_tags.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/location_status_tags.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { MonitorLocation } from '../../../../../../common/runtime_types/monitor'; -import { LocationStatusTags } from '../index'; -import { mockMoment } from '../../../../../lib/helper/test_helpers'; +import { MonitorLocation } from '../../../../../common/runtime_types/monitor'; +import { LocationStatusTags } from './index'; +import { mockMoment } from '../../../../lib/helper/test_helpers'; mockMoment(); diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/tag_label.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/tag_label.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/tag_label.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/tag_label.test.tsx index a44aa5db24867..360072ebcb56f 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/__tests__/tag_label.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/availability_reporting/tag_label.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { TagLabel } from '../tag_label'; +import { TagLabel } from './tag_label'; describe('TagLabel component', () => { it('shallow render correctly against snapshot', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__tests__/__snapshots__/location_availability.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__snapshots__/location_availability.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__tests__/__snapshots__/location_availability.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__snapshots__/location_availability.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__tests__/location_availability.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/location_availability.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__tests__/location_availability.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/location_availability.test.tsx index c3af1e30911c5..290a0f6773da9 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/__tests__/location_availability.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_availability/location_availability.test.tsx @@ -6,9 +6,9 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { LocationAvailability } from '../location_availability'; -import { MonitorLocations } from '../../../../../../common/runtime_types'; -import { LocationMissingWarning } from '../../location_map/location_missing'; +import { LocationAvailability } from './location_availability'; +import { MonitorLocations } from '../../../../../common/runtime_types'; +import { LocationMissingWarning } from '../location_map/location_missing'; // Note For shallow test, we need absolute time strings describe('LocationAvailability component', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/__snapshots__/location_map.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__snapshots__/location_map.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/__snapshots__/location_map.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__snapshots__/location_map.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/__snapshots__/location_missing.test.tsx.snap b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__snapshots__/location_missing.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/__snapshots__/location_missing.test.tsx.snap rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__snapshots__/location_missing.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/map_config.test.ts b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts similarity index 85% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/map_config.test.ts rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts index 582c60f048bed..61742c78a137e 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/map_config.test.ts +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts @@ -4,10 +4,10 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getLayerList } from '../map_config'; -import { mockLayerList } from './__mocks__/poly_layer_mock'; -import { LocationPoint } from '../embedded_map'; -import { UptimeAppColors } from '../../../../../../apps/uptime_app'; +import { getLayerList } from './map_config'; +import { mockLayerList } from './poly_layer_mock'; +import { LocationPoint } from './embedded_map'; +import { UptimeAppColors } from '../../../../../apps/uptime_app'; jest.mock('uuid', () => { return { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/__mocks__/poly_layer_mock.ts b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/__mocks__/poly_layer_mock.ts rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts index 626011e3d09c9..3b21b5a139107 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/__mocks__/poly_layer_mock.ts +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import lowPolyLayerFeatures from '../../low_poly_layer.json'; +import lowPolyLayerFeatures from './low_poly_layer.json'; export const mockDownPointsLayer = { id: 'down_points', diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_map.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_map.test.tsx similarity index 89% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_map.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_map.test.tsx index 8b8b8c4cd87f9..2892caa173881 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_map.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_map.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { LocationMap } from '../location_map'; -import { LocationPoint } from '../embeddables/embedded_map'; +import { LocationMap } from './location_map'; +import { LocationPoint } from './embeddables/embedded_map'; // Note For shallow test, we need absolute time strings describe('LocationMap component', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_missing.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_missing.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_missing.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_missing.test.tsx index 2371034ef3288..c65b95199cc43 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/__tests__/location_missing.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/location_missing.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { LocationMissingWarning } from '../location_missing'; +import { LocationMissingWarning } from './location_missing'; describe('LocationMissingWarning component', () => { it('shallow render correctly against snapshot', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/monitor_status.bar.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/monitor_status.bar.test.tsx similarity index 91% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/monitor_status.bar.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/monitor_status.bar.test.tsx index 412398b247e0d..128dab0f689fa 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/monitor_status.bar.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/monitor_status.bar.test.tsx @@ -6,10 +6,10 @@ import moment from 'moment'; import React from 'react'; -import { MonitorStatusBar } from '../status_bar'; -import { Ping } from '../../../../../common/runtime_types'; +import { MonitorStatusBar } from './status_bar'; +import { Ping } from '../../../../common/runtime_types'; import * as redux from 'react-redux'; -import { renderWithRouter } from '../../../../lib'; +import { renderWithRouter } from '../../../lib'; import { createMemoryHistory } from 'history'; describe('MonitorStatusBar component', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/ssl_certificate.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/ssl_certificate.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/ssl_certificate.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/ssl_certificate.test.tsx index 01652044e7a5b..9fccf4448ecd2 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/ssl_certificate.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/ssl_certificate.test.tsx @@ -7,11 +7,11 @@ import React from 'react'; import moment from 'moment'; import { EuiIcon } from '@elastic/eui'; -import { Tls } from '../../../../../common/runtime_types'; -import { MonitorSSLCertificate } from '../status_bar'; +import { Tls } from '../../../../common/runtime_types'; +import { MonitorSSLCertificate } from './status_bar'; import * as redux from 'react-redux'; -import { mountWithRouter, renderWithRouter, shallowWithRouter } from '../../../../lib'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../../common/constants'; +import { mountWithRouter, renderWithRouter, shallowWithRouter } from '../../../lib'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants'; describe('SSL Certificate component', () => { let monitorTls: Tls; diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/status_by_location.test.tsx b/x-pack/plugins/uptime/public/components/monitor/status_details/status_by_location.test.tsx similarity index 97% rename from x-pack/plugins/uptime/public/components/monitor/status_details/__test__/status_by_location.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/status_details/status_by_location.test.tsx index 5017a132d18e6..e01c5e025176c 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/__test__/status_by_location.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/status_by_location.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { MonitorLocation } from '../../../../../common/runtime_types'; -import { StatusByLocations } from '../index'; +import { MonitorLocation } from '../../../../common/runtime_types'; +import { StatusByLocations } from './index'; describe('StatusByLocation component', () => { let monitorLocations: MonitorLocation[]; diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/browser_expanded_row.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/browser_expanded_row.test.tsx similarity index 97% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/browser_expanded_row.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/browser_expanded_row.test.tsx index e4e4e62d754be..cccf81d27b5d9 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/browser_expanded_row.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/browser_expanded_row.test.tsx @@ -6,8 +6,8 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { BrowserExpandedRowComponent } from '../browser_expanded_row'; -import { Ping } from '../../../../../common/runtime_types'; +import { BrowserExpandedRowComponent } from './browser_expanded_row'; +import { Ping } from '../../../../common/runtime_types'; describe('BrowserExpandedRowComponent', () => { let defStep: Ping; diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_event.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_event.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_event.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/console_event.test.tsx index 8146c0b2d0e78..954d101b4de54 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_event.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_event.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { ConsoleEvent } from '../console_event'; +import { ConsoleEvent } from './console_event'; describe('ConsoleEvent component', () => { it('renders danger color for errors', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_output_event_list.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_output_event_list.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_output_event_list.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/console_output_event_list.test.tsx index 2b09d15571940..04c2577945456 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/console_output_event_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_output_event_list.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { ConsoleOutputEventList } from '../console_output_event_list'; +import { ConsoleOutputEventList } from './console_output_event_list'; describe('ConsoleOutputEventList component', () => { it('renders a component per console event', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/empty_journey.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/empty_journey.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/empty_journey.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/empty_journey.test.tsx index 793819e8b29e8..530e897bd2e0e 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/empty_journey.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/empty_journey.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { EmptyJourney } from '../empty_journey'; +import { EmptyJourney } from './empty_journey'; describe('EmptyJourney component', () => { it('omits check group element when undefined', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_journey.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/executed_journey.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_journey.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/executed_journey.test.tsx index 030b1a49009ef..65fff8e8c15ef 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_journey.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/executed_journey.test.tsx @@ -6,8 +6,8 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { ExecutedJourney } from '../executed_journey'; -import { Ping } from '../../../../../common/runtime_types'; +import { ExecutedJourney } from './executed_journey'; +import { Ping } from '../../../../common/runtime_types'; const MONITOR_BOILERPLATE = { id: 'MON_ID', diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_step.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/executed_step.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_step.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/executed_step.test.tsx index e3a3d39241de2..45f91ee8a6ae5 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/executed_step.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/executed_step.test.tsx @@ -5,9 +5,9 @@ */ import React from 'react'; -import { ExecutedStep } from '../executed_step'; -import { Ping } from '../../../../../common/runtime_types'; -import { mountWithRouter } from '../../../../lib'; +import { ExecutedStep } from './executed_step'; +import { Ping } from '../../../../common/runtime_types'; +import { mountWithRouter } from '../../../lib'; // FLAKY: https://github.com/elastic/kibana/issues/85899 describe.skip('ExecutedStep', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/status_badge.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/status_badge.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/status_badge.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/status_badge.test.tsx index c131dff7a698f..54c70f1f9b17c 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/status_badge.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/status_badge.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { StatusBadge } from '../status_badge'; +import { StatusBadge } from './status_badge'; describe('StatusBadge', () => { it('displays success message', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/__tests__/use_monitor_breadcrumbs.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/use_monitor_breadcrumbs.test.tsx similarity index 84% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/__tests__/use_monitor_breadcrumbs.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/use_monitor_breadcrumbs.test.tsx index ec95fcd7f8cfb..290f9f4bb0423 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/__tests__/use_monitor_breadcrumbs.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/use_monitor_breadcrumbs.test.tsx @@ -8,12 +8,12 @@ import { ChromeBreadcrumb } from 'kibana/public'; import React from 'react'; import { Route } from 'react-router-dom'; import { of } from 'rxjs'; -import { MountWithReduxProvider, mountWithRouter } from '../../../../../lib'; -import { KibanaContextProvider } from '../../../../../../../../../src/plugins/kibana_react/public'; -import { useMonitorBreadcrumb } from '../use_monitor_breadcrumb'; -import { OVERVIEW_ROUTE } from '../../../../../../common/constants'; -import { Ping } from '../../../../../../common/runtime_types/ping'; -import { JourneyState } from '../../../../../state/reducers/journey'; +import { MountWithReduxProvider, mountWithRouter } from '../../../../lib'; +import { KibanaContextProvider } from '../../../../../../../../src/plugins/kibana_react/public'; +import { useMonitorBreadcrumb } from './use_monitor_breadcrumb'; +import { OVERVIEW_ROUTE } from '../../../../../common/constants'; +import { Ping } from '../../../../../common/runtime_types/ping'; +import { JourneyState } from '../../../../state/reducers/journey'; describe('useMonitorBreadcrumbs', () => { it('sets the given breadcrumbs', () => { diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/step_screenshot_display.test.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/step_screenshot_display.test.tsx rename to x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.test.tsx index 3bec9116ef99f..5fc04ed7a718d 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/__tests__/step_screenshot_display.test.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl, mountWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { StepScreenshotDisplay } from '../step_screenshot_display'; +import { StepScreenshotDisplay } from './step_screenshot_display'; jest.mock('react-use/lib/useIntersection', () => () => ({ isIntersecting: true, diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/parsing_error_callout.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/__snapshots__/parsing_error_callout.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/parsing_error_callout.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/__snapshots__/parsing_error_callout.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/snapshot.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/__snapshots__/snapshot.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/snapshot.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/__snapshots__/snapshot.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/snapshot_heading.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/__snapshots__/snapshot_heading.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/__tests__/__snapshots__/snapshot_heading.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/__snapshots__/snapshot_heading.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/add_filter_btn.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/add_filter_btn.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/overview/alerts/__tests__/add_filter_btn.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/add_filter_btn.test.tsx index e8ac7cd4898ed..01f77885e791f 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/add_filter_btn.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/add_filter_btn.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl, mountWithIntl } from '@kbn/test/jest'; -import { AddFilterButton } from '../add_filter_btn'; +import { AddFilterButton } from './add_filter_btn'; import { EuiButtonEmpty, EuiContextMenuItem } from '@elastic/eui'; describe('AddFilterButton component', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_field_number.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/alert_field_number.test.tsx similarity index 99% rename from x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_field_number.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/alert_field_number.test.tsx index 669d0ae391467..63b0142d9c5d2 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_field_number.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/alert_field_number.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { mountWithIntl } from '@kbn/test/jest'; -import { AlertFieldNumber, handleAlertFieldNumberChange } from '../alert_field_number'; +import { AlertFieldNumber, handleAlertFieldNumberChange } from './alert_field_number'; describe('AlertFieldNumber', () => { describe('handleAlertFieldNumberChange', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_monitor_status.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/alert_monitor_status.test.tsx similarity index 99% rename from x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_monitor_status.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/alert_monitor_status.test.tsx index 1b742f04b0126..d6f65712a98fe 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/alert_monitor_status.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/alert_monitor_status.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { AlertMonitorStatusComponent, AlertMonitorStatusProps } from '../alert_monitor_status'; +import { AlertMonitorStatusComponent, AlertMonitorStatusProps } from './alert_monitor_status'; describe('alert monitor status component', () => { describe('AlertMonitorStatus', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/__snapshots__/down_number_select.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__snapshots__/down_number_select.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/__snapshots__/down_number_select.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__snapshots__/down_number_select.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/__snapshots__/time_expression_select.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__snapshots__/time_expression_select.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/__snapshots__/time_expression_select.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__snapshots__/time_expression_select.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/down_number_select.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/down_number_select.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/down_number_select.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/down_number_select.test.tsx index 26908afa4dca2..ebed6417e1219 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/down_number_select.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/down_number_select.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { DownNoExpressionSelect } from '../down_number_select'; +import { DownNoExpressionSelect } from './down_number_select'; describe('DownNoExpressionSelect component', () => { it('should shallow renders against props', function () { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/filters_expression_select.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/filters_expression_select.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/filters_expression_select.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/filters_expression_select.test.tsx index 9d57021d02702..3ebd828604463 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/filters_expression_select.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/filters_expression_select.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { FiltersExpressionsSelect } from '../filters_expression_select'; +import { FiltersExpressionsSelect } from './filters_expression_select'; describe('filters expression select component', () => { it('is empty when no filters available', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/time_expression_select.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/time_expression_select.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/time_expression_select.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/time_expression_select.test.tsx index 157602f717f47..cf18a51a9bc7b 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/__tests__/time_expression_select.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/monitor_expressions/time_expression_select.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { TimeExpressionSelect } from '../time_expression_select'; +import { TimeExpressionSelect } from './time_expression_select'; describe('TimeExpressionSelect component', () => { it('should shallow renders against props', function () { diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/old_alert_callout.test.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/old_alert_callout.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/overview/alerts/__tests__/old_alert_callout.test.tsx rename to x-pack/plugins/uptime/public/components/overview/alerts/old_alert_callout.test.tsx index 26cebba1a715e..5bd3929aa5b51 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/__tests__/old_alert_callout.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/old_alert_callout.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { OldAlertCallOut } from '../old_alert_call_out'; +import { OldAlertCallOut } from './old_alert_call_out'; describe('OldAlertCallOut', () => { it('returns null for new alert type', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/data_or_index_missing.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/empty_state/__snapshots__/data_or_index_missing.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/data_or_index_missing.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/empty_state/__snapshots__/data_or_index_missing.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/empty_state/__snapshots__/empty_state.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/__snapshots__/empty_state.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/empty_state/__snapshots__/empty_state.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/data_or_index_missing.test.tsx b/x-pack/plugins/uptime/public/components/overview/empty_state/data_or_index_missing.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/data_or_index_missing.test.tsx rename to x-pack/plugins/uptime/public/components/overview/empty_state/data_or_index_missing.test.tsx index 37ddb34fa6c54..7bef894300307 100644 --- a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/data_or_index_missing.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/empty_state/data_or_index_missing.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; import { FormattedMessage } from '@kbn/i18n/react'; -import { DataOrIndexMissing } from '../data_or_index_missing'; +import { DataOrIndexMissing } from './data_or_index_missing'; describe('DataOrIndexMissing component', () => { it('renders headingMessage', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/empty_state.test.tsx b/x-pack/plugins/uptime/public/components/overview/empty_state/empty_state.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/empty_state.test.tsx rename to x-pack/plugins/uptime/public/components/overview/empty_state/empty_state.test.tsx index 0de5cd3ab31be..3270b8daa0de3 100644 --- a/x-pack/plugins/uptime/public/components/overview/empty_state/__tests__/empty_state.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/empty_state/empty_state.test.tsx @@ -5,10 +5,10 @@ */ import React from 'react'; -import { EmptyStateComponent } from '../empty_state'; -import { StatesIndexStatus } from '../../../../../common/runtime_types'; +import { EmptyStateComponent } from './empty_state'; +import { StatesIndexStatus } from '../../../../common/runtime_types'; import { HttpFetchError, IHttpFetchError } from 'src/core/public'; -import { mountWithRouter, shallowWithRouter } from '../../../../lib'; +import { mountWithRouter, shallowWithRouter } from '../../../lib'; describe('EmptyState component', () => { let statesIndexStatus: StatesIndexStatus; diff --git a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/__snapshots__/filter_popover.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/filter_group/__snapshots__/filter_popover.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/__snapshots__/filter_popover.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/filter_group/__snapshots__/filter_popover.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/__snapshots__/parse_filter_map.test.ts.snap b/x-pack/plugins/uptime/public/components/overview/filter_group/__snapshots__/parse_filter_map.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/__snapshots__/parse_filter_map.test.ts.snap rename to x-pack/plugins/uptime/public/components/overview/filter_group/__snapshots__/parse_filter_map.test.ts.snap diff --git a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/filter_popover.test.tsx b/x-pack/plugins/uptime/public/components/overview/filter_group/filter_popover.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/filter_popover.test.tsx rename to x-pack/plugins/uptime/public/components/overview/filter_group/filter_popover.test.tsx index 465ed3bdae51a..d08d56dc2e2a0 100644 --- a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/filter_popover.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/filter_group/filter_popover.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { shallowWithIntl, mountWithIntl } from '@kbn/test/jest'; -import { FilterPopoverProps, FilterPopover } from '../filter_popover'; -import { UptimeFilterButton } from '../uptime_filter_button'; +import { FilterPopoverProps, FilterPopover } from './filter_popover'; +import { UptimeFilterButton } from './uptime_filter_button'; import { EuiFilterSelectItem } from '@elastic/eui'; describe('FilterPopover component', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/parse_filter_map.test.ts b/x-pack/plugins/uptime/public/components/overview/filter_group/parse_filter_map.test.ts similarity index 92% rename from x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/parse_filter_map.test.ts rename to x-pack/plugins/uptime/public/components/overview/filter_group/parse_filter_map.test.ts index 8deee25377850..74b0cf8883c8e 100644 --- a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/parse_filter_map.test.ts +++ b/x-pack/plugins/uptime/public/components/overview/filter_group/parse_filter_map.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseFiltersMap } from '../parse_filter_map'; +import { parseFiltersMap } from './parse_filter_map'; describe('parseFiltersMap', () => { it('provides values from valid filter string', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/toggle_selected_item.test.ts b/x-pack/plugins/uptime/public/components/overview/filter_group/toggle_selected_item.test.ts similarity index 92% rename from x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/toggle_selected_item.test.ts rename to x-pack/plugins/uptime/public/components/overview/filter_group/toggle_selected_item.test.ts index 00253b78687cd..27983307307af 100644 --- a/x-pack/plugins/uptime/public/components/overview/filter_group/__tests__/toggle_selected_item.test.ts +++ b/x-pack/plugins/uptime/public/components/overview/filter_group/toggle_selected_item.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { toggleSelectedItems } from '../toggle_selected_item'; +import { toggleSelectedItems } from './toggle_selected_item'; describe('toggleSelectedItems', () => { it(`adds the item if it's not in the list`, () => { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/filter_status_button.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/filter_status_button.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/filter_status_button.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/monitor_list.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/monitor_list.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/monitor_list.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/status_filter.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/__snapshots__/status_filter.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/__snapshots__/status_filter.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/__snapshots__/enable_alert.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__snapshots__/enable_alert.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/__snapshots__/enable_alert.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__snapshots__/enable_alert.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/__snapshots__/monitor_status_column.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__snapshots__/monitor_status_column.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/__snapshots__/monitor_status_column.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__snapshots__/monitor_status_column.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/enable_alert.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/enable_alert.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.test.tsx index 4e286ebd864a5..dadb4a04c594c 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/enable_alert.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.test.tsx @@ -5,16 +5,16 @@ */ import React from 'react'; -import { EnableMonitorAlert } from '../enable_alert'; +import { EnableMonitorAlert } from './enable_alert'; import * as redux from 'react-redux'; import { mountWithRouterRedux, renderWithRouterRedux, shallowWithRouterRedux, -} from '../../../../../lib'; +} from '../../../../lib'; import { EuiPopover, EuiText } from '@elastic/eui'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../../../common/constants'; -import { ReactRouterEuiLink } from '../../../../common/react_router_helpers'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../../common/constants'; +import { ReactRouterEuiLink } from '../../../common/react_router_helpers'; describe('EnableAlertComponent', () => { let defaultConnectors: string[] = []; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/monitor_status_column.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/monitor_status_column.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/monitor_status_column.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/columns/monitor_status_column.test.tsx index 79aa79783bdcf..3a35f699eb1ad 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/__tests__/monitor_status_column.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/monitor_status_column.test.tsx @@ -7,10 +7,10 @@ import React from 'react'; import moment from 'moment'; import { renderWithIntl, shallowWithIntl } from '@kbn/test/jest'; -import { Ping } from '../../../../../../common/runtime_types'; -import { STATUS } from '../../../../../../common/constants'; -import { getLocationStatus, MonitorListStatusColumn } from '../monitor_status_column'; -import { EuiThemeProvider } from '../../../../../../../observability/public'; +import { Ping } from '../../../../../common/runtime_types'; +import { STATUS } from '../../../../../common/constants'; +import { getLocationStatus, MonitorListStatusColumn } from './monitor_status_column'; +import { EuiThemeProvider } from '../../../../../../observability/public'; describe('MonitorListStatusColumn', () => { beforeAll(() => { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/filter_status_button.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/filter_status_button.test.tsx similarity index 89% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/filter_status_button.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/filter_status_button.test.tsx index 612ede2c556e7..e9873bc68697c 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/filter_status_button.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/filter_status_button.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { FilterStatusButton, FilterStatusButtonProps } from '../filter_status_button'; -import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../../lib'; +import { FilterStatusButton, FilterStatusButtonProps } from './filter_status_button'; +import { renderWithRouter, shallowWithRouter, MountWithReduxProvider } from '../../../lib'; describe('FilterStatusButton', () => { let props: FilterStatusButtonProps; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list.test.tsx index a158f6f67b48f..82a7100a48081 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list.test.tsx @@ -12,14 +12,14 @@ import { makePing, Ping, MonitorSummary, -} from '../../../../../common/runtime_types'; -import { MonitorListComponent, noItemsMessage } from '../monitor_list'; -import { renderWithRouter, shallowWithRouter } from '../../../../lib'; +} from '../../../../common/runtime_types'; +import { MonitorListComponent, noItemsMessage } from './monitor_list'; +import { renderWithRouter, shallowWithRouter } from '../../../lib'; import * as redux from 'react-redux'; import moment from 'moment'; -import { IHttpFetchError } from '../../../../../../../../src/core/public'; -import { mockMoment } from '../../../../lib/helper/test_helpers'; -import { EuiThemeProvider } from '../../../../../../observability/public'; +import { IHttpFetchError } from '../../../../../../../src/core/public'; +import { mockMoment } from '../../../lib/helper/test_helpers'; +import { EuiThemeProvider } from '../../../../../observability/public'; jest.mock('@elastic/eui/lib/services/accessibility/html_id_generator', () => { return { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/integration_group.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/integration_group.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/integration_group.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/integration_group.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/integration_link.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/integration_link.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/integration_link.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/integration_link.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_list_drawer.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_list_drawer.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_list_drawer.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_status_list.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_status_list.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_status_list.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_status_list.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_status_row.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_status_row.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/monitor_status_row.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/monitor_status_row.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/most_recent_error.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__snapshots__/most_recent_error.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/data.json b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/data.json similarity index 100% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/data.json rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/data.json diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_group.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_group.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_group.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_group.test.tsx index 62e34354dd356..28f03813d1925 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_group.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_group.test.tsx @@ -5,9 +5,9 @@ */ import React from 'react'; -import { MonitorSummary, makePing } from '../../../../../../common/runtime_types'; +import { MonitorSummary, makePing } from '../../../../../common/runtime_types'; import { shallowWithIntl } from '@kbn/test/jest'; -import { IntegrationGroup, extractSummaryValues } from '../actions_popover/integration_group'; +import { IntegrationGroup, extractSummaryValues } from './actions_popover/integration_group'; describe('IntegrationGroup', () => { let summary: MonitorSummary; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_link.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_link.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_link.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_link.test.tsx index 88f49f87881e0..0e8c056a9eb8d 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/integration_link.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/integration_link.test.tsx @@ -5,7 +5,7 @@ */ import React from 'react'; -import { IntegrationLink } from '../actions_popover/integration_link'; +import { IntegrationLink } from './actions_popover/integration_link'; import { shallowWithIntl } from '@kbn/test/jest'; describe('IntegrationLink component', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_list_drawer.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_list_drawer.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_list_drawer.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_list_drawer.test.tsx index 6da19b2ccc4d2..a426ac4b45912 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_list_drawer.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_list_drawer.test.tsx @@ -5,9 +5,9 @@ */ import 'jest'; import React from 'react'; -import { MonitorListDrawerComponent } from '../monitor_list_drawer'; -import { MonitorDetails, MonitorSummary, makePing } from '../../../../../../common/runtime_types'; -import { shallowWithRouter } from '../../../../../lib'; +import { MonitorListDrawerComponent } from './monitor_list_drawer'; +import { MonitorDetails, MonitorSummary, makePing } from '../../../../../common/runtime_types'; +import { shallowWithRouter } from '../../../../lib'; describe('MonitorListDrawer component', () => { let summary: MonitorSummary; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_list.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_list.test.tsx similarity index 96% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_list.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_list.test.tsx index da518a9f27164..2252d947daa72 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_list.test.tsx @@ -7,8 +7,8 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; import moment from 'moment'; -import { MonitorStatusList } from '../monitor_status_list'; -import { Ping } from '../../../../../../common/runtime_types'; +import { MonitorStatusList } from './monitor_status_list'; +import { Ping } from '../../../../../common/runtime_types'; describe('MonitorStatusList component', () => { let pings: Ping[]; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_row.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_row.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_row.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_row.test.tsx index e8c9c2d687bb3..f8fa2d2b4f943 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/monitor_status_row.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/monitor_status_row.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { MonitorStatusRow } from '../monitor_status_row'; +import { MonitorStatusRow } from './monitor_status_row'; describe('MonitorStatusRow component', () => { let locationNames: Set; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/most_recent_error.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/most_recent_error.test.tsx similarity index 92% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/most_recent_error.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/most_recent_error.test.tsx index 8dd5ad48bc9d4..af3adb2ee79c1 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/__tests__/most_recent_error.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/most_recent_error.test.tsx @@ -8,8 +8,8 @@ import { shallowWithIntl, renderWithIntl } from '@kbn/test/jest'; import React from 'react'; import moment from 'moment'; import { BrowserRouter as Router } from 'react-router-dom'; -import { MostRecentError } from '../most_recent_error'; -import { MonitorDetails, PingError } from '../../../../../../common/runtime_types'; +import { MostRecentError } from './most_recent_error'; +import { MonitorDetails, PingError } from '../../../../../common/runtime_types'; describe('MostRecentError component', () => { let monitorDetails: MonitorDetails; diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list_page_size_select.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_page_size_select.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list_page_size_select.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_page_size_select.test.tsx index 38dc0ccbda5c4..d22a28b1e195d 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list_page_size_select.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_page_size_select.test.tsx @@ -5,7 +5,7 @@ */ import React from 'react'; -import { MonitorListPageSizeSelectComponent } from '../monitor_list_page_size_select'; +import { MonitorListPageSizeSelectComponent } from './monitor_list_page_size_select'; import { mountWithIntl } from '@kbn/test/jest'; describe('MonitorListPageSizeSelect', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/parse_timestamp.test.ts b/x-pack/plugins/uptime/public/components/overview/monitor_list/parse_timestamp.test.ts similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/parse_timestamp.test.ts rename to x-pack/plugins/uptime/public/components/overview/monitor_list/parse_timestamp.test.ts index 37841a74f5b66..7fb737b9759a5 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/parse_timestamp.test.ts +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/parse_timestamp.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseTimestamp } from '../parse_timestamp'; +import { parseTimestamp } from './parse_timestamp'; describe('parseTimestamp', () => { it('handles numeric timestamps', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/status_filter.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/status_filter.test.tsx similarity index 94% rename from x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/status_filter.test.tsx rename to x-pack/plugins/uptime/public/components/overview/monitor_list/status_filter.test.tsx index d09bbad5cb9e0..591a1dbff00a2 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/status_filter.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/status_filter.test.tsx @@ -10,10 +10,10 @@ import { renderWithRouter, shallowWithRouter, MountWithReduxProvider, -} from '../../../../lib'; +} from '../../../lib'; import { createMemoryHistory } from 'history'; -import { StatusFilter } from '../status_filter'; -import { FilterStatusButton } from '../filter_status_button'; +import { StatusFilter } from './status_filter'; +import { FilterStatusButton } from './filter_status_button'; describe('StatusFilterComponent', () => { beforeEach(() => {}); diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/parsing_error_callout.test.tsx b/x-pack/plugins/uptime/public/components/overview/parsing_error_callout.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/__tests__/parsing_error_callout.test.tsx rename to x-pack/plugins/uptime/public/components/overview/parsing_error_callout.test.tsx index bd52c33de2c58..e326bdcfe20ba 100644 --- a/x-pack/plugins/uptime/public/components/overview/__tests__/parsing_error_callout.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/parsing_error_callout.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { ParsingErrorCallout } from '../parsing_error_callout'; +import { ParsingErrorCallout } from './parsing_error_callout'; describe('OverviewPageParsingErrorCallout', () => { it('renders without errors when a valid error is provided', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/snapshot.test.tsx b/x-pack/plugins/uptime/public/components/overview/snapshot.test.tsx similarity index 83% rename from x-pack/plugins/uptime/public/components/overview/__tests__/snapshot.test.tsx rename to x-pack/plugins/uptime/public/components/overview/snapshot.test.tsx index 06114ba9d962f..3cf5f7d84d6f6 100644 --- a/x-pack/plugins/uptime/public/components/overview/__tests__/snapshot.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/snapshot.test.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { shallowWithIntl } from '@kbn/test/jest'; -import { Snapshot } from '../../../../common/runtime_types'; -import { SnapshotComponent } from '../snapshot/snapshot'; +import { Snapshot } from '../../../common/runtime_types'; +import { SnapshotComponent } from './snapshot/snapshot'; describe('Snapshot component', () => { const snapshot: Snapshot = { diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/snapshot_heading.test.tsx b/x-pack/plugins/uptime/public/components/overview/snapshot_heading.test.tsx similarity index 93% rename from x-pack/plugins/uptime/public/components/overview/__tests__/snapshot_heading.test.tsx rename to x-pack/plugins/uptime/public/components/overview/snapshot_heading.test.tsx index 061bccbdfed51..4bd81aef419f4 100644 --- a/x-pack/plugins/uptime/public/components/overview/__tests__/snapshot_heading.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/snapshot_heading.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { SnapshotHeading } from '../snapshot/snapshot_heading'; +import { SnapshotHeading } from './snapshot/snapshot_heading'; describe('SnapshotHeading', () => { it('renders custom heading for no down monitors', () => { diff --git a/x-pack/plugins/uptime/public/components/overview/__tests__/synthetics_callout.test.tsx b/x-pack/plugins/uptime/public/components/overview/synthetics_callout.test.tsx similarity index 98% rename from x-pack/plugins/uptime/public/components/overview/__tests__/synthetics_callout.test.tsx rename to x-pack/plugins/uptime/public/components/overview/synthetics_callout.test.tsx index b060890c613e3..be4a98ecdda16 100644 --- a/x-pack/plugins/uptime/public/components/overview/__tests__/synthetics_callout.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/synthetics_callout.test.tsx @@ -6,7 +6,7 @@ import { shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { SyntheticsCallout } from '../synthetics_callout'; +import { SyntheticsCallout } from './synthetics_callout'; describe('SyntheticsCallout', () => { let setItemMock; diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap b/x-pack/plugins/uptime/public/components/settings/__snapshots__/certificate_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/certificate_form.test.tsx.snap rename to x-pack/plugins/uptime/public/components/settings/__snapshots__/certificate_form.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap b/x-pack/plugins/uptime/public/components/settings/__snapshots__/indices_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/components/settings/__tests__/__snapshots__/indices_form.test.tsx.snap rename to x-pack/plugins/uptime/public/components/settings/__snapshots__/indices_form.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/certificate_form.test.tsx b/x-pack/plugins/uptime/public/components/settings/certificate_form.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/components/settings/__tests__/certificate_form.test.tsx rename to x-pack/plugins/uptime/public/components/settings/certificate_form.test.tsx index 9a67bf28f33de..f061ea75dd488 100644 --- a/x-pack/plugins/uptime/public/components/settings/__tests__/certificate_form.test.tsx +++ b/x-pack/plugins/uptime/public/components/settings/certificate_form.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { CertificateExpirationForm } from '../certificate_form'; -import { shallowWithRouter, mountWithRouter } from '../../../lib'; +import { CertificateExpirationForm } from './certificate_form'; +import { shallowWithRouter, mountWithRouter } from '../../lib'; describe('CertificateForm', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/components/settings/__tests__/indices_form.test.tsx b/x-pack/plugins/uptime/public/components/settings/indices_form.test.tsx similarity index 89% rename from x-pack/plugins/uptime/public/components/settings/__tests__/indices_form.test.tsx rename to x-pack/plugins/uptime/public/components/settings/indices_form.test.tsx index 01b66263d3e93..8e5c56e51120e 100644 --- a/x-pack/plugins/uptime/public/components/settings/__tests__/indices_form.test.tsx +++ b/x-pack/plugins/uptime/public/components/settings/indices_form.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { IndicesForm } from '../indices_form'; -import { shallowWithRouter } from '../../../lib'; +import { IndicesForm } from './indices_form'; +import { shallowWithRouter } from '../../lib'; describe('CertificateForm', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/hooks/__tests__/__snapshots__/use_url_params.test.tsx.snap b/x-pack/plugins/uptime/public/hooks/__snapshots__/use_url_params.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/hooks/__tests__/__snapshots__/use_url_params.test.tsx.snap rename to x-pack/plugins/uptime/public/hooks/__snapshots__/use_url_params.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/hooks/__tests__/use_breadcrumbs.test.tsx b/x-pack/plugins/uptime/public/hooks/use_breadcrumbs.test.tsx similarity index 85% rename from x-pack/plugins/uptime/public/hooks/__tests__/use_breadcrumbs.test.tsx rename to x-pack/plugins/uptime/public/hooks/use_breadcrumbs.test.tsx index 5b7032f796fc6..9723faf030430 100644 --- a/x-pack/plugins/uptime/public/hooks/__tests__/use_breadcrumbs.test.tsx +++ b/x-pack/plugins/uptime/public/hooks/use_breadcrumbs.test.tsx @@ -7,11 +7,11 @@ import { ChromeBreadcrumb } from 'kibana/public'; import React from 'react'; import { Route } from 'react-router-dom'; -import { mountWithRouter } from '../../lib'; -import { OVERVIEW_ROUTE } from '../../../common/constants'; -import { KibanaContextProvider } from '../../../../../../src/plugins/kibana_react/public'; -import { UptimeUrlParams, getSupportedUrlParams, MountWithReduxProvider } from '../../lib/helper'; -import { makeBaseBreadcrumb, useBreadcrumbs } from '../use_breadcrumbs'; +import { mountWithRouter } from '../lib'; +import { OVERVIEW_ROUTE } from '../../common/constants'; +import { KibanaContextProvider } from '../../../../../src/plugins/kibana_react/public'; +import { UptimeUrlParams, getSupportedUrlParams, MountWithReduxProvider } from '../lib/helper'; +import { makeBaseBreadcrumb, useBreadcrumbs } from './use_breadcrumbs'; describe('useBreadcrumbs', () => { it('sets the given breadcrumbs', () => { diff --git a/x-pack/plugins/uptime/public/hooks/__tests__/use_url_params.test.tsx b/x-pack/plugins/uptime/public/hooks/use_url_params.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/hooks/__tests__/use_url_params.test.tsx rename to x-pack/plugins/uptime/public/hooks/use_url_params.test.tsx index b7efb9bfe2aec..3bc4749ee1058 100644 --- a/x-pack/plugins/uptime/public/hooks/__tests__/use_url_params.test.tsx +++ b/x-pack/plugins/uptime/public/hooks/use_url_params.test.tsx @@ -6,9 +6,9 @@ import DateMath from '@elastic/datemath'; import React, { useState, Fragment } from 'react'; -import { useUrlParams, UptimeUrlParamsHook } from '../use_url_params'; -import { UptimeRefreshContext } from '../../contexts'; -import { mountWithRouter, MountWithReduxProvider } from '../../lib'; +import { useUrlParams, UptimeUrlParamsHook } from './use_url_params'; +import { UptimeRefreshContext } from '../contexts'; +import { mountWithRouter, MountWithReduxProvider } from '../lib'; import { createMemoryHistory } from 'history'; interface MockUrlParamsComponentProps { diff --git a/x-pack/plugins/uptime/public/lib/alert_types/__tests__/monitor_status.test.ts b/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts similarity index 98% rename from x-pack/plugins/uptime/public/lib/alert_types/__tests__/monitor_status.test.ts rename to x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts index 7e297c1cb6d7b..7171aa4828637 100644 --- a/x-pack/plugins/uptime/public/lib/alert_types/__tests__/monitor_status.test.ts +++ b/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { initMonitorStatusAlertType } from '../monitor_status'; -import { validateMonitorStatusParams as validate } from '../lazy_wrapper/validate_monitor_status'; +import { initMonitorStatusAlertType } from './monitor_status'; +import { validateMonitorStatusParams as validate } from './lazy_wrapper/validate_monitor_status'; describe('monitor status alert type', () => { describe('validate', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/charts/__tests__/get_label_format.test.ts b/x-pack/plugins/uptime/public/lib/helper/charts/get_label_format.test.ts similarity index 97% rename from x-pack/plugins/uptime/public/lib/helper/charts/__tests__/get_label_format.test.ts rename to x-pack/plugins/uptime/public/lib/helper/charts/get_label_format.test.ts index bdf0832a98fdf..7cbe189eb9826 100644 --- a/x-pack/plugins/uptime/public/lib/helper/charts/__tests__/get_label_format.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/charts/get_label_format.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getChartDateLabel } from '../get_chart_date_label'; +import { getChartDateLabel } from './get_chart_date_label'; describe('getChartLabelFormatter', () => { beforeEach(() => { diff --git a/x-pack/plugins/uptime/public/lib/helper/charts/__tests__/is_within_current_date.test.ts b/x-pack/plugins/uptime/public/lib/helper/charts/is_within_current_date.test.ts similarity index 92% rename from x-pack/plugins/uptime/public/lib/helper/charts/__tests__/is_within_current_date.test.ts rename to x-pack/plugins/uptime/public/lib/helper/charts/is_within_current_date.test.ts index 3f05440752ea7..34f8f744cc7a6 100644 --- a/x-pack/plugins/uptime/public/lib/helper/charts/__tests__/is_within_current_date.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/charts/is_within_current_date.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { isWithinCurrentDate } from '../is_within_current_date'; +import { isWithinCurrentDate } from './is_within_current_date'; describe('isWithinCurrentDate', () => { beforeEach(() => { diff --git a/x-pack/plugins/uptime/public/lib/helper/__tests__/convert_measurements.test.ts b/x-pack/plugins/uptime/public/lib/helper/convert_measurements.test.ts similarity index 90% rename from x-pack/plugins/uptime/public/lib/helper/__tests__/convert_measurements.test.ts rename to x-pack/plugins/uptime/public/lib/helper/convert_measurements.test.ts index 3e68486649b4f..f313847499d5d 100644 --- a/x-pack/plugins/uptime/public/lib/helper/__tests__/convert_measurements.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/convert_measurements.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { convertMicrosecondsToMilliseconds } from '../convert_measurements'; +import { convertMicrosecondsToMilliseconds } from './convert_measurements'; describe('convertMicrosecondsToMilliseconds', () => { it('converts microseconds to millis', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_apm_href.test.ts b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_apm_href.test.ts similarity index 93% rename from x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_apm_href.test.ts rename to x-pack/plugins/uptime/public/lib/helper/observability_integration/get_apm_href.test.ts index bbd389195d9dc..d681c5e4c374d 100644 --- a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_apm_href.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_apm_href.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getApmHref } from '../get_apm_href'; -import { MonitorSummary, makePing } from '../../../../../common/runtime_types'; +import { getApmHref } from './get_apm_href'; +import { MonitorSummary, makePing } from '../../../../common/runtime_types'; describe('getApmHref', () => { let summary: MonitorSummary; diff --git a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_infra_href.test.ts b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_infra_href.test.ts similarity index 98% rename from x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_infra_href.test.ts rename to x-pack/plugins/uptime/public/lib/helper/observability_integration/get_infra_href.test.ts index 44e29c81f43f8..ae97613914316 100644 --- a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_infra_href.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_infra_href.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getInfraContainerHref, getInfraKubernetesHref, getInfraIpHref } from '../get_infra_href'; -import { MonitorSummary, makePing, Ping } from '../../../../../common/runtime_types'; +import { getInfraContainerHref, getInfraKubernetesHref, getInfraIpHref } from './get_infra_href'; +import { MonitorSummary, makePing, Ping } from '../../../../common/runtime_types'; describe('getInfraHref', () => { let summary: MonitorSummary; diff --git a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_logging_href.test.ts b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_logging_href.test.ts similarity index 97% rename from x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_logging_href.test.ts rename to x-pack/plugins/uptime/public/lib/helper/observability_integration/get_logging_href.test.ts index ae94e6cadd541..49a3e06445ec5 100644 --- a/x-pack/plugins/uptime/public/lib/helper/observability_integration/__tests__/get_logging_href.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/observability_integration/get_logging_href.test.ts @@ -8,8 +8,8 @@ import { getLoggingContainerHref, getLoggingKubernetesHref, getLoggingIpHref, -} from '../get_logging_href'; -import { MonitorSummary, makePing } from '../../../../../common/runtime_types'; +} from './get_logging_href'; +import { MonitorSummary, makePing } from '../../../../common/runtime_types'; describe('getLoggingHref', () => { let summary: MonitorSummary; diff --git a/x-pack/plugins/uptime/public/lib/helper/__tests__/series_has_down_values.test.ts b/x-pack/plugins/uptime/public/lib/helper/series_has_down_values.test.ts similarity index 91% rename from x-pack/plugins/uptime/public/lib/helper/__tests__/series_has_down_values.test.ts rename to x-pack/plugins/uptime/public/lib/helper/series_has_down_values.test.ts index b739575a1dd4a..f7e15684634c1 100644 --- a/x-pack/plugins/uptime/public/lib/helper/__tests__/series_has_down_values.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/series_has_down_values.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { seriesHasDownValues } from '../series_has_down_values'; +import { seriesHasDownValues } from './series_has_down_values'; describe('seriesHasDownValues', () => { it('identifies that a series does have down values', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/__tests__/stringify_url_params.test.ts b/x-pack/plugins/uptime/public/lib/helper/stringify_url_params.test.ts similarity index 96% rename from x-pack/plugins/uptime/public/lib/helper/__tests__/stringify_url_params.test.ts rename to x-pack/plugins/uptime/public/lib/helper/stringify_url_params.test.ts index 2320b10111771..1b5a6ab7c317b 100644 --- a/x-pack/plugins/uptime/public/lib/helper/__tests__/stringify_url_params.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/stringify_url_params.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { stringifyUrlParams } from '../stringify_url_params'; +import { stringifyUrlParams } from './stringify_url_params'; describe('stringifyUrlParams', () => { it('creates expected string value', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/__snapshots__/get_supported_url_params.test.ts.snap b/x-pack/plugins/uptime/public/lib/helper/url_params/__snapshots__/get_supported_url_params.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/__snapshots__/get_supported_url_params.test.ts.snap rename to x-pack/plugins/uptime/public/lib/helper/url_params/__snapshots__/get_supported_url_params.test.ts.snap diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/get_supported_url_params.test.ts b/x-pack/plugins/uptime/public/lib/helper/url_params/get_supported_url_params.test.ts similarity index 94% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/get_supported_url_params.test.ts rename to x-pack/plugins/uptime/public/lib/helper/url_params/get_supported_url_params.test.ts index 4e7e0c7a6aec4..7de12f2602f41 100644 --- a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/get_supported_url_params.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/url_params/get_supported_url_params.test.ts @@ -5,8 +5,8 @@ */ import DateMath from '@elastic/datemath'; -import { getSupportedUrlParams } from '../get_supported_url_params'; -import { CLIENT_DEFAULTS } from '../../../../../common/constants'; +import { getSupportedUrlParams } from './get_supported_url_params'; +import { CLIENT_DEFAULTS } from '../../../../common/constants'; describe('getSupportedUrlParams', () => { let dateMathSpy: any; diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_absolute_date.test.ts b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_absolute_date.test.ts similarity index 94% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_absolute_date.test.ts rename to x-pack/plugins/uptime/public/lib/helper/url_params/parse_absolute_date.test.ts index 16888aec21cfe..f93d498eb5ac9 100644 --- a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_absolute_date.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_absolute_date.test.ts @@ -6,7 +6,7 @@ import DateMath from '@elastic/datemath'; import moment from 'moment'; -import { parseAbsoluteDate } from '../parse_absolute_date'; +import { parseAbsoluteDate } from './parse_absolute_date'; describe('parseAbsoluteDate', () => { let dateMathSpy: any; diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_autorefresh_interval.test.ts b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_autorefresh_interval.test.ts similarity index 93% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_autorefresh_interval.test.ts rename to x-pack/plugins/uptime/public/lib/helper/url_params/parse_autorefresh_interval.test.ts index a5c2168378089..5602725c5ed69 100644 --- a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_autorefresh_interval.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_autorefresh_interval.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseUrlInt } from '../parse_url_int'; +import { parseUrlInt } from './parse_url_int'; describe('parseUrlInt', () => { it('parses a number', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_is_paused.test.ts b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_is_paused.test.ts similarity index 92% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_is_paused.test.ts rename to x-pack/plugins/uptime/public/lib/helper/url_params/parse_is_paused.test.ts index 762f55e78dbb2..54807e6646c9c 100644 --- a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_is_paused.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_is_paused.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseIsPaused } from '../parse_is_paused'; +import { parseIsPaused } from './parse_is_paused'; describe('parseIsPaused', () => { it('parses correct true isPaused value', () => { diff --git a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_url_int.test.ts b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_url_int.test.ts similarity index 93% rename from x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_url_int.test.ts rename to x-pack/plugins/uptime/public/lib/helper/url_params/parse_url_int.test.ts index a5c2168378089..5602725c5ed69 100644 --- a/x-pack/plugins/uptime/public/lib/helper/url_params/__tests__/parse_url_int.test.ts +++ b/x-pack/plugins/uptime/public/lib/helper/url_params/parse_url_int.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseUrlInt } from '../parse_url_int'; +import { parseUrlInt } from './parse_url_int'; describe('parseUrlInt', () => { it('parses a number', () => { diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__snapshots__/certificates.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/certificates.test.tsx.snap rename to x-pack/plugins/uptime/public/pages/__snapshots__/certificates.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__snapshots__/monitor.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/monitor.test.tsx.snap rename to x-pack/plugins/uptime/public/pages/__snapshots__/monitor.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__snapshots__/not_found.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/not_found.test.tsx.snap rename to x-pack/plugins/uptime/public/pages/__snapshots__/not_found.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap b/x-pack/plugins/uptime/public/pages/__snapshots__/overview.test.tsx.snap similarity index 100% rename from x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap rename to x-pack/plugins/uptime/public/pages/__snapshots__/overview.test.tsx.snap diff --git a/x-pack/plugins/uptime/public/pages/__tests__/certificates.test.tsx b/x-pack/plugins/uptime/public/pages/certificates.test.tsx similarity index 82% rename from x-pack/plugins/uptime/public/pages/__tests__/certificates.test.tsx rename to x-pack/plugins/uptime/public/pages/certificates.test.tsx index 8dfb6fba3d6be..78611bbe8f80f 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/certificates.test.tsx +++ b/x-pack/plugins/uptime/public/pages/certificates.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { shallowWithRouter } from '../../lib'; -import { CertificatesPage } from '../certificates'; +import { shallowWithRouter } from '../lib'; +import { CertificatesPage } from './certificates'; describe('CertificatesPage', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/pages/__tests__/monitor.test.tsx b/x-pack/plugins/uptime/public/pages/monitor.test.tsx similarity index 83% rename from x-pack/plugins/uptime/public/pages/__tests__/monitor.test.tsx rename to x-pack/plugins/uptime/public/pages/monitor.test.tsx index 8a1256c741c85..80035c2d631c2 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/monitor.test.tsx +++ b/x-pack/plugins/uptime/public/pages/monitor.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { MonitorPage } from '../monitor'; -import { shallowWithRouter } from '../../lib'; +import { MonitorPage } from './monitor'; +import { shallowWithRouter } from '../lib'; describe('MonitorPage', () => { it('shallow renders expected elements for valid props', () => { diff --git a/x-pack/plugins/uptime/public/pages/__tests__/not_found.test.tsx b/x-pack/plugins/uptime/public/pages/not_found.test.tsx similarity index 83% rename from x-pack/plugins/uptime/public/pages/__tests__/not_found.test.tsx rename to x-pack/plugins/uptime/public/pages/not_found.test.tsx index 2b6c60efc84b0..7b3fae65fe6ee 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/not_found.test.tsx +++ b/x-pack/plugins/uptime/public/pages/not_found.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { shallowWithRouter } from '../../lib'; -import { NotFoundPage } from '../not_found'; +import { shallowWithRouter } from '../lib'; +import { NotFoundPage } from './not_found'; describe('NotFoundPage', () => { it('render component for valid props', () => { diff --git a/x-pack/plugins/uptime/public/pages/__tests__/overview.test.tsx b/x-pack/plugins/uptime/public/pages/overview.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/pages/__tests__/overview.test.tsx rename to x-pack/plugins/uptime/public/pages/overview.test.tsx index 0fd72a6619386..d70fb890925da 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/overview.test.tsx +++ b/x-pack/plugins/uptime/public/pages/overview.test.tsx @@ -5,8 +5,8 @@ */ import React from 'react'; -import { OverviewPageComponent } from '../overview'; -import { shallowWithRouter } from '../../lib'; +import { OverviewPageComponent } from './overview'; +import { shallowWithRouter } from '../lib'; describe('MonitorPage', () => { const indexPattern = { diff --git a/x-pack/plugins/uptime/public/pages/__tests__/settings.test.tsx b/x-pack/plugins/uptime/public/pages/settings.test.tsx similarity index 95% rename from x-pack/plugins/uptime/public/pages/__tests__/settings.test.tsx rename to x-pack/plugins/uptime/public/pages/settings.test.tsx index 601feee8f8159..ff9ee71e4618c 100644 --- a/x-pack/plugins/uptime/public/pages/__tests__/settings.test.tsx +++ b/x-pack/plugins/uptime/public/pages/settings.test.tsx @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { isValidCertVal } from '../settings'; +import { isValidCertVal } from './settings'; describe('settings', () => { describe('isValidCertVal', () => { diff --git a/x-pack/plugins/uptime/public/state/actions/__tests__/__snapshots__/overview_filters.test.ts.snap b/x-pack/plugins/uptime/public/state/actions/__snapshots__/overview_filters.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/state/actions/__tests__/__snapshots__/overview_filters.test.ts.snap rename to x-pack/plugins/uptime/public/state/actions/__snapshots__/overview_filters.test.ts.snap diff --git a/x-pack/plugins/uptime/public/state/actions/__tests__/overview_filters.test.ts b/x-pack/plugins/uptime/public/state/actions/overview_filters.test.ts similarity index 97% rename from x-pack/plugins/uptime/public/state/actions/__tests__/overview_filters.test.ts rename to x-pack/plugins/uptime/public/state/actions/overview_filters.test.ts index 4765e1327ce31..8454772dcb361 100644 --- a/x-pack/plugins/uptime/public/state/actions/__tests__/overview_filters.test.ts +++ b/x-pack/plugins/uptime/public/state/actions/overview_filters.test.ts @@ -8,7 +8,7 @@ import { fetchOverviewFilters, fetchOverviewFiltersSuccess, fetchOverviewFiltersFail, -} from '../overview_filters'; +} from './overview_filters'; describe('overview filters action creators', () => { it('creates a get action', () => { diff --git a/x-pack/plugins/uptime/public/state/api/__tests__/__snapshots__/snapshot.test.ts.snap b/x-pack/plugins/uptime/public/state/api/__snapshots__/snapshot.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/state/api/__tests__/__snapshots__/snapshot.test.ts.snap rename to x-pack/plugins/uptime/public/state/api/__snapshots__/snapshot.test.ts.snap diff --git a/x-pack/plugins/uptime/public/state/api/__tests__/snapshot.test.ts b/x-pack/plugins/uptime/public/state/api/snapshot.test.ts similarity index 96% rename from x-pack/plugins/uptime/public/state/api/__tests__/snapshot.test.ts rename to x-pack/plugins/uptime/public/state/api/snapshot.test.ts index f3ddbd8be02b7..72304bf0b1eb7 100644 --- a/x-pack/plugins/uptime/public/state/api/__tests__/snapshot.test.ts +++ b/x-pack/plugins/uptime/public/state/api/snapshot.test.ts @@ -5,8 +5,8 @@ */ import { HttpFetchError } from 'src/core/public'; -import { fetchSnapshotCount } from '../snapshot'; -import { apiService } from '../utils'; +import { fetchSnapshotCount } from './snapshot'; +import { apiService } from './utils'; describe('snapshot API', () => { let fetchMock: jest.SpyInstance>; diff --git a/x-pack/plugins/uptime/public/state/effects/__tests__/fetch_effect.test.ts b/x-pack/plugins/uptime/public/state/effects/fetch_effect.test.ts similarity index 91% rename from x-pack/plugins/uptime/public/state/effects/__tests__/fetch_effect.test.ts rename to x-pack/plugins/uptime/public/state/effects/fetch_effect.test.ts index 4ec35d8cd6c6f..5c067125578e6 100644 --- a/x-pack/plugins/uptime/public/state/effects/__tests__/fetch_effect.test.ts +++ b/x-pack/plugins/uptime/public/state/effects/fetch_effect.test.ts @@ -5,11 +5,11 @@ */ import { call, put } from 'redux-saga/effects'; -import { fetchEffectFactory } from '../fetch_effect'; -import { indexStatusAction } from '../../actions'; +import { fetchEffectFactory } from './fetch_effect'; +import { indexStatusAction } from '../actions'; import { HttpFetchError } from 'src/core/public'; -import { StatesIndexStatus } from '../../../../common/runtime_types'; -import { fetchIndexStatus } from '../../api'; +import { StatesIndexStatus } from '../../../common/runtime_types'; +import { fetchIndexStatus } from '../api'; describe('fetch saga effect factory', () => { const asyncAction = indexStatusAction; diff --git a/x-pack/plugins/uptime/public/state/reducers/__tests__/__snapshots__/snapshot.test.ts.snap b/x-pack/plugins/uptime/public/state/reducers/__snapshots__/snapshot.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/state/reducers/__tests__/__snapshots__/snapshot.test.ts.snap rename to x-pack/plugins/uptime/public/state/reducers/__snapshots__/snapshot.test.ts.snap diff --git a/x-pack/plugins/uptime/public/state/reducers/__tests__/__snapshots__/ui.test.ts.snap b/x-pack/plugins/uptime/public/state/reducers/__snapshots__/ui.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/public/state/reducers/__tests__/__snapshots__/ui.test.ts.snap rename to x-pack/plugins/uptime/public/state/reducers/__snapshots__/ui.test.ts.snap diff --git a/x-pack/plugins/uptime/public/state/reducers/__tests__/snapshot.test.ts b/x-pack/plugins/uptime/public/state/reducers/snapshot.test.ts similarity index 95% rename from x-pack/plugins/uptime/public/state/reducers/__tests__/snapshot.test.ts rename to x-pack/plugins/uptime/public/state/reducers/snapshot.test.ts index 40e365f0a13a7..96f5146d33f12 100644 --- a/x-pack/plugins/uptime/public/state/reducers/__tests__/snapshot.test.ts +++ b/x-pack/plugins/uptime/public/state/reducers/snapshot.test.ts @@ -4,12 +4,12 @@ * you may not use this file except in compliance with the Elastic License. */ -import { snapshotReducer } from '../snapshot'; +import { snapshotReducer } from './snapshot'; import { getSnapshotCountAction, getSnapshotCountActionSuccess, getSnapshotCountActionFail, -} from '../../actions'; +} from '../actions'; describe('snapshot reducer', () => { it('updates existing state', () => { diff --git a/x-pack/plugins/uptime/public/state/reducers/__tests__/ui.test.ts b/x-pack/plugins/uptime/public/state/reducers/ui.test.ts similarity index 97% rename from x-pack/plugins/uptime/public/state/reducers/__tests__/ui.test.ts rename to x-pack/plugins/uptime/public/state/reducers/ui.test.ts index c265cd9fc7ecd..5b1a54437defa 100644 --- a/x-pack/plugins/uptime/public/state/reducers/__tests__/ui.test.ts +++ b/x-pack/plugins/uptime/public/state/reducers/ui.test.ts @@ -9,8 +9,8 @@ import { toggleIntegrationsPopover, setAlertFlyoutVisible, setSearchTextAction, -} from '../../actions'; -import { uiReducer } from '../ui'; +} from '../actions'; +import { uiReducer } from './ui'; import { Action } from 'redux-actions'; describe('ui reducer', () => { diff --git a/x-pack/plugins/uptime/public/state/selectors/__tests__/index.test.ts b/x-pack/plugins/uptime/public/state/selectors/index.test.ts similarity index 94% rename from x-pack/plugins/uptime/public/state/selectors/__tests__/index.test.ts rename to x-pack/plugins/uptime/public/state/selectors/index.test.ts index 64410b860b197..7c8cf56e5aec4 100644 --- a/x-pack/plugins/uptime/public/state/selectors/__tests__/index.test.ts +++ b/x-pack/plugins/uptime/public/state/selectors/index.test.ts @@ -4,9 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getBasePath, isIntegrationsPopupOpen } from '../index'; -import { AppState } from '../../../state'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants'; +import { getBasePath, isIntegrationsPopupOpen } from './index'; +import { AppState } from '../../state'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../common/constants'; describe('state selectors', () => { const state: AppState = { diff --git a/x-pack/plugins/uptime/server/lib/adapters/telemetry/__tests__/__snapshots__/kibana_telemetry_adapter.test.ts.snap b/x-pack/plugins/uptime/server/lib/adapters/telemetry/__snapshots__/kibana_telemetry_adapter.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/adapters/telemetry/__tests__/__snapshots__/kibana_telemetry_adapter.test.ts.snap rename to x-pack/plugins/uptime/server/lib/adapters/telemetry/__snapshots__/kibana_telemetry_adapter.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/adapters/telemetry/__tests__/kibana_telemetry_adapter.test.ts b/x-pack/plugins/uptime/server/lib/adapters/telemetry/kibana_telemetry_adapter.test.ts similarity index 97% rename from x-pack/plugins/uptime/server/lib/adapters/telemetry/__tests__/kibana_telemetry_adapter.test.ts rename to x-pack/plugins/uptime/server/lib/adapters/telemetry/kibana_telemetry_adapter.test.ts index 2142e5ea1e2f6..0f4d0b39ac5ab 100644 --- a/x-pack/plugins/uptime/server/lib/adapters/telemetry/__tests__/kibana_telemetry_adapter.test.ts +++ b/x-pack/plugins/uptime/server/lib/adapters/telemetry/kibana_telemetry_adapter.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { KibanaTelemetryAdapter } from '../kibana_telemetry_adapter'; +import { KibanaTelemetryAdapter } from './kibana_telemetry_adapter'; import { createCollectorFetchContextMock } from 'src/plugins/usage_collection/server/mocks'; jest .spyOn(KibanaTelemetryAdapter, 'countNoOfUniqueMonitorAndLocations') diff --git a/x-pack/plugins/uptime/server/lib/alerts/__tests__/common.test.ts b/x-pack/plugins/uptime/server/lib/alerts/common.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/alerts/__tests__/common.test.ts rename to x-pack/plugins/uptime/server/lib/alerts/common.test.ts index cd06370816ccc..469d4d60dbd9e 100644 --- a/x-pack/plugins/uptime/server/lib/alerts/__tests__/common.test.ts +++ b/x-pack/plugins/uptime/server/lib/alerts/common.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { updateState } from '../common'; +import { updateState } from './common'; describe('updateState', () => { let spy: jest.SpyInstance; diff --git a/x-pack/plugins/uptime/server/lib/alerts/__tests__/status_check.test.ts b/x-pack/plugins/uptime/server/lib/alerts/status_check.test.ts similarity index 98% rename from x-pack/plugins/uptime/server/lib/alerts/__tests__/status_check.test.ts rename to x-pack/plugins/uptime/server/lib/alerts/status_check.test.ts index d5fd92476dd16..27fb90eceacb1 100644 --- a/x-pack/plugins/uptime/server/lib/alerts/__tests__/status_check.test.ts +++ b/x-pack/plugins/uptime/server/lib/alerts/status_check.test.ts @@ -10,22 +10,22 @@ import { statusCheckAlertFactory, getStatusMessage, getUniqueIdsByLoc, -} from '../status_check'; +} from './status_check'; import { AlertType, AlertTypeParams, AlertTypeState, AlertInstanceState, AlertInstanceContext, -} from '../../../../../alerts/server'; +} from '../../../../alerts/server'; import { IRouter } from 'kibana/server'; -import { UMServerLibs } from '../../lib'; -import { UptimeCorePlugins, UptimeCoreSetup } from '../../adapters'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants'; -import { alertsMock, AlertServicesMock } from '../../../../../alerts/server/mocks'; -import { GetMonitorStatusResult } from '../../requests/get_monitor_status'; -import { makePing } from '../../../../common/runtime_types/ping'; -import { GetMonitorAvailabilityResult } from '../../requests/get_monitor_availability'; +import { UMServerLibs } from '../lib'; +import { UptimeCorePlugins, UptimeCoreSetup } from '../adapters'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../common/constants'; +import { alertsMock, AlertServicesMock } from '../../../../alerts/server/mocks'; +import { GetMonitorStatusResult } from '../requests/get_monitor_status'; +import { makePing } from '../../../common/runtime_types/ping'; +import { GetMonitorAvailabilityResult } from '../requests/get_monitor_availability'; /** * The alert takes some dependencies as parameters; these are things like diff --git a/x-pack/plugins/uptime/server/lib/alerts/__tests__/tls.test.ts b/x-pack/plugins/uptime/server/lib/alerts/tls.test.ts similarity index 98% rename from x-pack/plugins/uptime/server/lib/alerts/__tests__/tls.test.ts rename to x-pack/plugins/uptime/server/lib/alerts/tls.test.ts index 3e968ae459827..ecb233cdacf23 100644 --- a/x-pack/plugins/uptime/server/lib/alerts/__tests__/tls.test.ts +++ b/x-pack/plugins/uptime/server/lib/alerts/tls.test.ts @@ -5,8 +5,8 @@ */ import moment from 'moment'; -import { getCertSummary } from '../tls'; -import { Cert } from '../../../../common/runtime_types'; +import { getCertSummary } from './tls'; +import { Cert } from '../../../common/runtime_types'; describe('tls alert', () => { describe('getCertSummary', () => { diff --git a/x-pack/plugins/uptime/server/lib/domains/__tests__/__snapshots__/license.test.ts.snap b/x-pack/plugins/uptime/server/lib/domains/__snapshots__/license.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/domains/__tests__/__snapshots__/license.test.ts.snap rename to x-pack/plugins/uptime/server/lib/domains/__snapshots__/license.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/domains/__tests__/license.test.ts b/x-pack/plugins/uptime/server/lib/domains/license.test.ts similarity index 91% rename from x-pack/plugins/uptime/server/lib/domains/__tests__/license.test.ts rename to x-pack/plugins/uptime/server/lib/domains/license.test.ts index b842f55fc7579..8a1c9e940d08d 100644 --- a/x-pack/plugins/uptime/server/lib/domains/__tests__/license.test.ts +++ b/x-pack/plugins/uptime/server/lib/domains/license.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { ILicense } from '../../../../../licensing/server'; -import { licenseCheck } from '../license'; +import { ILicense } from '../../../../licensing/server'; +import { licenseCheck } from './license'; describe('license check', () => { let mockLicense: Pick; diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/__snapshots__/assert_close_to.test.ts.snap b/x-pack/plugins/uptime/server/lib/helper/__snapshots__/assert_close_to.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/helper/__test__/__snapshots__/assert_close_to.test.ts.snap rename to x-pack/plugins/uptime/server/lib/helper/__snapshots__/assert_close_to.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/__snapshots__/get_filter_clause.test.ts.snap b/x-pack/plugins/uptime/server/lib/helper/__snapshots__/get_filter_clause.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/helper/__test__/__snapshots__/get_filter_clause.test.ts.snap rename to x-pack/plugins/uptime/server/lib/helper/__snapshots__/get_filter_clause.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/assert_close_to.test.ts b/x-pack/plugins/uptime/server/lib/helper/assert_close_to.test.ts similarity index 93% rename from x-pack/plugins/uptime/server/lib/helper/__test__/assert_close_to.test.ts rename to x-pack/plugins/uptime/server/lib/helper/assert_close_to.test.ts index 6ccedcf7153dc..4d0c8a0901e8c 100644 --- a/x-pack/plugins/uptime/server/lib/helper/__test__/assert_close_to.test.ts +++ b/x-pack/plugins/uptime/server/lib/helper/assert_close_to.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { assertCloseTo } from '../assert_close_to'; +import { assertCloseTo } from './assert_close_to'; describe('assertCloseTo', () => { it('does not throw an error when expected value is correct', () => { diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/get_filter_clause.test.ts b/x-pack/plugins/uptime/server/lib/helper/get_filter_clause.test.ts similarity index 93% rename from x-pack/plugins/uptime/server/lib/helper/__test__/get_filter_clause.test.ts rename to x-pack/plugins/uptime/server/lib/helper/get_filter_clause.test.ts index 65371b2069abc..52b2b9cde5073 100644 --- a/x-pack/plugins/uptime/server/lib/helper/__test__/get_filter_clause.test.ts +++ b/x-pack/plugins/uptime/server/lib/helper/get_filter_clause.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getFilterClause } from '../get_filter_clause'; +import { getFilterClause } from './get_filter_clause'; describe('getFilterClause', () => { it('returns a filter object with range when only dates are supplied', () => { diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/get_histogram_interval.test.ts b/x-pack/plugins/uptime/server/lib/helper/get_histogram_interval.test.ts similarity index 86% rename from x-pack/plugins/uptime/server/lib/helper/__test__/get_histogram_interval.test.ts rename to x-pack/plugins/uptime/server/lib/helper/get_histogram_interval.test.ts index 09b857f37e1df..e4af132257c77 100644 --- a/x-pack/plugins/uptime/server/lib/helper/__test__/get_histogram_interval.test.ts +++ b/x-pack/plugins/uptime/server/lib/helper/get_histogram_interval.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getHistogramInterval } from '../get_histogram_interval'; -import { assertCloseTo } from '../assert_close_to'; +import { getHistogramInterval } from './get_histogram_interval'; +import { assertCloseTo } from './assert_close_to'; describe('getHistogramInterval', () => { it('specifies the interval necessary to divide a given timespan into equal buckets, rounded to the nearest integer, expressed in ms', () => { diff --git a/x-pack/plugins/uptime/server/lib/helper/__test__/parse_relative_date.test.ts b/x-pack/plugins/uptime/server/lib/helper/parse_relative_date.test.ts similarity index 92% rename from x-pack/plugins/uptime/server/lib/helper/__test__/parse_relative_date.test.ts rename to x-pack/plugins/uptime/server/lib/helper/parse_relative_date.test.ts index ec6e48c62c62e..bec7b157102dd 100644 --- a/x-pack/plugins/uptime/server/lib/helper/__test__/parse_relative_date.test.ts +++ b/x-pack/plugins/uptime/server/lib/helper/parse_relative_date.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { parseRelativeDate } from '../get_histogram_interval'; +import { parseRelativeDate } from './get_histogram_interval'; import { Moment } from 'moment'; describe('Parsing a relative end date properly', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/monitor_charts_mock.json b/x-pack/plugins/uptime/server/lib/requests/__fixtures__/monitor_charts_mock.json similarity index 100% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/monitor_charts_mock.json rename to x-pack/plugins/uptime/server/lib/requests/__fixtures__/monitor_charts_mock.json diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/generate_filter_aggs.test.ts.snap b/x-pack/plugins/uptime/server/lib/requests/__snapshots__/generate_filter_aggs.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/generate_filter_aggs.test.ts.snap rename to x-pack/plugins/uptime/server/lib/requests/__snapshots__/generate_filter_aggs.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/get_monitor_charts.test.ts.snap b/x-pack/plugins/uptime/server/lib/requests/__snapshots__/get_monitor_charts.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/get_monitor_charts.test.ts.snap rename to x-pack/plugins/uptime/server/lib/requests/__snapshots__/get_monitor_charts.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/get_ping_histogram.test.ts.snap b/x-pack/plugins/uptime/server/lib/requests/__snapshots__/get_ping_histogram.test.ts.snap similarity index 100% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/__snapshots__/get_ping_histogram.test.ts.snap rename to x-pack/plugins/uptime/server/lib/requests/__snapshots__/get_ping_histogram.test.ts.snap diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/combine_range_with_filters.test.ts b/x-pack/plugins/uptime/server/lib/requests/combine_range_with_filters.test.ts similarity index 97% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/combine_range_with_filters.test.ts rename to x-pack/plugins/uptime/server/lib/requests/combine_range_with_filters.test.ts index 31d19dab290da..7acc7d1835a46 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/combine_range_with_filters.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/combine_range_with_filters.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { combineRangeWithFilters } from '../get_filter_bar'; +import { combineRangeWithFilters } from './get_filter_bar'; describe('combineRangeWithFilters', () => { it('combines filters that have no filter clause', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/generate_filter_aggs.test.ts b/x-pack/plugins/uptime/server/lib/requests/generate_filter_aggs.test.ts similarity index 93% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/generate_filter_aggs.test.ts rename to x-pack/plugins/uptime/server/lib/requests/generate_filter_aggs.test.ts index 4e285ec25a492..c6440a8869ef0 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/generate_filter_aggs.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/generate_filter_aggs.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { generateFilterAggs } from '../generate_filter_aggs'; +import { generateFilterAggs } from './generate_filter_aggs'; describe('generateFilterAggs', () => { it('generates expected aggregations object', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_certs.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_certs.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_certs.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_certs.test.ts index cb37438619397..46cf104fb8d6d 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_certs.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_certs.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getCerts } from '../get_certs'; +import { getCerts } from './get_certs'; import { getUptimeESMockClient } from './helper'; describe('getCerts', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_latest_monitor.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_latest_monitor.test.ts similarity index 95% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_latest_monitor.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_latest_monitor.test.ts index a59a21f4afae1..6997395dc9aab 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_latest_monitor.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_latest_monitor.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getLatestMonitor } from '../get_latest_monitor'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants'; +import { getLatestMonitor } from './get_latest_monitor'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../common/constants'; import { getUptimeESMockClient } from './helper'; describe('getLatestMonitor', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_availability.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_monitor_availability.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_availability.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_monitor_availability.test.ts index 82256f31067c3..42b033fd3618c 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_availability.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_monitor_availability.test.ts @@ -9,9 +9,9 @@ import { GetMonitorAvailabilityResult, AvailabilityKey, getMonitorAvailability, -} from '../get_monitor_availability'; +} from './get_monitor_availability'; import { getUptimeESMockClient, setupMockEsCompositeQuery } from './helper'; -import { GetMonitorAvailabilityParams, makePing, Ping } from '../../../../common/runtime_types'; +import { GetMonitorAvailabilityParams, makePing, Ping } from '../../../common/runtime_types'; interface AvailabilityTopHit { _source: Ping; diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_charts.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_monitor_charts.test.ts similarity index 91% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_charts.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_monitor_charts.test.ts index 428f990352dfc..a7e45a80b1bc1 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_charts.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_monitor_charts.test.ts @@ -5,8 +5,8 @@ */ import { set } from '@elastic/safer-lodash-set'; -import mockChartsData from './monitor_charts_mock.json'; -import { getMonitorDurationChart } from '../get_monitor_duration'; +import mockChartsData from './__fixtures__/monitor_charts_mock.json'; +import { getMonitorDurationChart } from './get_monitor_duration'; import { getUptimeESMockClient } from './helper'; describe('ElasticsearchMonitorsAdapter', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_status.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_monitor_status.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_status.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_monitor_status.test.ts index 4978fbd6bcdbb..2996b8037f028 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_monitor_status.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_monitor_status.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getMonitorStatus } from '../get_monitor_status'; +import { getMonitorStatus } from './get_monitor_status'; import { getUptimeESMockClient, setupMockEsCompositeQuery } from './helper'; export interface BucketItemCriteria { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_network_events.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_network_events.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_network_events.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_network_events.test.ts index bb88911eedfb0..e8618fabc4cca 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_network_events.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_network_events.test.ts @@ -5,7 +5,7 @@ */ import { getUptimeESMockClient } from './helper'; -import { getNetworkEvents } from '../get_network_events'; +import { getNetworkEvents } from './get_network_events'; describe('getNetworkEvents', () => { let mockHits: any; diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_ping_histogram.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_ping_histogram.test.ts similarity index 97% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_ping_histogram.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_ping_histogram.test.ts index 3b26adb18ae7f..fecf1d27ca0d3 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_ping_histogram.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_ping_histogram.test.ts @@ -4,8 +4,8 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getPingHistogram } from '../get_ping_histogram'; -import * as intervalHelper from '../../helper/get_histogram_interval'; +import { getPingHistogram } from './get_ping_histogram'; +import * as intervalHelper from '../helper/get_histogram_interval'; import { getUptimeESMockClient } from './helper'; describe('getPingHistogram', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_pings.test.ts b/x-pack/plugins/uptime/server/lib/requests/get_pings.test.ts similarity index 99% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/get_pings.test.ts rename to x-pack/plugins/uptime/server/lib/requests/get_pings.test.ts index 709c13c40f9e2..6561b413a6ec0 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/get_pings.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/get_pings.test.ts @@ -4,9 +4,9 @@ * you may not use this file except in compliance with the Elastic License. */ -import { getPings } from '../get_pings'; +import { getPings } from './get_pings'; import { set } from '@elastic/safer-lodash-set'; -import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants'; +import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../common/constants'; import { getUptimeESMockClient } from './helper'; describe('getAll', () => { diff --git a/x-pack/plugins/uptime/server/lib/requests/__tests__/helper.ts b/x-pack/plugins/uptime/server/lib/requests/helper.ts similarity index 92% rename from x-pack/plugins/uptime/server/lib/requests/__tests__/helper.ts rename to x-pack/plugins/uptime/server/lib/requests/helper.ts index 37f7583312867..5d97843e2f30f 100644 --- a/x-pack/plugins/uptime/server/lib/requests/__tests__/helper.ts +++ b/x-pack/plugins/uptime/server/lib/requests/helper.ts @@ -7,11 +7,11 @@ import { elasticsearchServiceMock, savedObjectsClientMock, -} from '../../../../../../../src/core/server/mocks'; +} from '../../../../../../src/core/server/mocks'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { ElasticsearchClientMock } from '../../../../../../../src/core/server/elasticsearch/client/mocks'; -import { createUptimeESClient } from '../../lib'; +import { ElasticsearchClientMock } from '../../../../../../src/core/server/elasticsearch/client/mocks'; +import { createUptimeESClient } from '../lib'; export interface MultiPageCriteria { after_key?: K; diff --git a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/monitor_summary_iterator.test.ts b/x-pack/plugins/uptime/server/lib/requests/search/monitor_summary_iterator.test.ts similarity index 96% rename from x-pack/plugins/uptime/server/lib/requests/search/__tests__/monitor_summary_iterator.test.ts rename to x-pack/plugins/uptime/server/lib/requests/search/monitor_summary_iterator.test.ts index 6705bcac3c0ff..8565b4b26d31d 100644 --- a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/monitor_summary_iterator.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/search/monitor_summary_iterator.test.ts @@ -9,10 +9,10 @@ import { ChunkFetcher, ChunkResult, MonitorSummaryIterator, -} from '../monitor_summary_iterator'; +} from './monitor_summary_iterator'; import { simpleQueryContext } from './test_helpers'; -import { QueryContext } from '../query_context'; -import { MonitorSummary } from '../../../../../common/runtime_types'; +import { QueryContext } from './query_context'; +import { MonitorSummary } from '../../../../common/runtime_types'; describe('iteration', () => { let iterator: MonitorSummaryIterator | null = null; diff --git a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/query_context.test.ts b/x-pack/plugins/uptime/server/lib/requests/search/query_context.test.ts similarity index 91% rename from x-pack/plugins/uptime/server/lib/requests/search/__tests__/query_context.test.ts rename to x-pack/plugins/uptime/server/lib/requests/search/query_context.test.ts index 10421ecf2b81f..6c0b0f32bcc24 100644 --- a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/query_context.test.ts +++ b/x-pack/plugins/uptime/server/lib/requests/search/query_context.test.ts @@ -4,10 +4,10 @@ * you may not use this file except in compliance with the Elastic License. */ -import { QueryContext } from '../query_context'; -import { CursorPagination } from '../types'; -import { CursorDirection, SortOrder } from '../../../../../common/runtime_types'; -import { getUptimeESMockClient } from '../../__tests__/helper'; +import { QueryContext } from './query_context'; +import { CursorPagination } from './types'; +import { CursorDirection, SortOrder } from '../../../../common/runtime_types'; +import { getUptimeESMockClient } from '../helper'; describe(QueryContext, () => { // 10 minute range diff --git a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/test_helpers.ts b/x-pack/plugins/uptime/server/lib/requests/search/test_helpers.ts similarity index 72% rename from x-pack/plugins/uptime/server/lib/requests/search/__tests__/test_helpers.ts rename to x-pack/plugins/uptime/server/lib/requests/search/test_helpers.ts index 9c322fbeec413..8c6919786762a 100644 --- a/x-pack/plugins/uptime/server/lib/requests/search/__tests__/test_helpers.ts +++ b/x-pack/plugins/uptime/server/lib/requests/search/test_helpers.ts @@ -4,10 +4,10 @@ * you may not use this file except in compliance with the Elastic License. */ -import { CursorPagination } from '../types'; -import { CursorDirection, SortOrder } from '../../../../../common/runtime_types'; -import { QueryContext } from '../query_context'; -import { getUptimeESMockClient } from '../../__tests__/helper'; +import { CursorPagination } from './types'; +import { CursorDirection, SortOrder } from '../../../../common/runtime_types'; +import { QueryContext } from './query_context'; +import { getUptimeESMockClient } from '../helper'; export const nextPagination = (key: any): CursorPagination => { return { diff --git a/x-pack/plugins/uptime/server/rest_api/__tests__/dynamic_settings.test.ts b/x-pack/plugins/uptime/server/rest_api/dynamic_settings.test.ts similarity index 97% rename from x-pack/plugins/uptime/server/rest_api/__tests__/dynamic_settings.test.ts rename to x-pack/plugins/uptime/server/rest_api/dynamic_settings.test.ts index cec27401c4dd1..6e7069e9d89d6 100644 --- a/x-pack/plugins/uptime/server/rest_api/__tests__/dynamic_settings.test.ts +++ b/x-pack/plugins/uptime/server/rest_api/dynamic_settings.test.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { validateCertsValues } from '../dynamic_settings'; +import { validateCertsValues } from './dynamic_settings'; describe('dynamic settings', () => { describe('validateCertValues', () => { From 679f339c777b8a8e4c1716088d940022df838811 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Wed, 6 Jan 2021 01:03:55 +0000 Subject: [PATCH 2/2] chore(NA): re-add file into __mocks__ folder --- .../location_map/embeddables/{ => __mocks__}/poly_layer_mock.ts | 2 +- .../status_details/location_map/embeddables/map_config.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/{ => __mocks__}/poly_layer_mock.ts (98%) diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__mocks__/poly_layer_mock.ts similarity index 98% rename from x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts rename to x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__mocks__/poly_layer_mock.ts index 3b21b5a139107..ff91cf9fe6674 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/poly_layer_mock.ts +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__mocks__/poly_layer_mock.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import lowPolyLayerFeatures from './low_poly_layer.json'; +import lowPolyLayerFeatures from '../low_poly_layer.json'; export const mockDownPointsLayer = { id: 'down_points', diff --git a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts index 61742c78a137e..b18ada8a582fd 100644 --- a/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts +++ b/x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_config.test.ts @@ -5,7 +5,7 @@ */ import { getLayerList } from './map_config'; -import { mockLayerList } from './poly_layer_mock'; +import { mockLayerList } from './__mocks__/poly_layer_mock'; import { LocationPoint } from './embedded_map'; import { UptimeAppColors } from '../../../../../apps/uptime_app';