Skip to content

Audit and convert tests to jest #54339

@flash1293

Description

@flash1293

In the various visualizations and apps of the Kibana app team some tests are still using the karma setup even though they are just running regular unit tests.

All of these places should be audited whether the conversion to jest is possible and converted whether thats the case. Some tests do visual regression testing which is not possible in jest - these tests will be handled in a separate step.

  • src/legacy/core_plugins/vis_type_timeseries/server/lib/vis_data/series/__tests__
  • src/legacy/core_plugins/vis_type_timeseries/server/lib/vis_data/request_processors/series/__tests__
  • src/legacy/core_plugins/vis_type_timeseries/server/lib/vis_data/__tests__
  • src/legacy/core_plugins/vis_type_timeseries/server/lib/vis_data/response_processors/series/__tests__
  • src/legacy/core_plugins/vis_type_timeseries/common/__tests__
  • src/legacy/core_plugins/input_control_vis/public/components/editor/__tests__
  • src/legacy/core_plugins/vis_type_vega/public/data_model/__tests__
  • src/legacy/core_plugins/vis_type_timeseries/public/components/lib/__tests__
  • src/legacy/core_plugins/vis_type_timelion/public/
  • src/legacy/core_plugins/kibana/public/dashboard/__tests__
  • src/legacy/core_plugins/vis_type_table/public/agg_table/__tests__
  • src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.test.ts (this is already jest, but relies on ui/new_platform - should be made a real unit test)

Low priority, should be redundant with #47559 :

  • src/legacy/core_plugins/kibana/public/discover/np_ready/angular/context/api/utils/__tests__
  • src/legacy/core_plugins/kibana/public/discover/np_ready/angular/context/api/__tests__
  • src/legacy/core_plugins/kibana/public/discover/__tests__

Next tests contains visual testing, covered by separate issue: #57813

  • src/legacy/core_plugins/vis_type_tagcloud/public/components/__tests__
  • src/legacy/core_plugins/vis_type_vega/public/__tests__

Metadata

Metadata

Assignees

Labels

Feature:NP MigrationTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions