opensearch-project / dashboards-query-workbench

The OpenSearch Dashboards Query Workbench enables you to query your OpenSearch data using either SQL or PPL
Apache License 2.0
4 stars 28 forks source link

Fix jest tests #255

Closed sumukhswamy closed 5 months ago

sumukhswamy commented 5 months ago

Description

added jest tests to increase code coverage and fixed flakey tests in cypress

Issues Resolved

[List any issues this PR will resolve]

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (236db60) 53.04% compared to head (b92b443) 59.88%.

:exclamation: Current head b92b443 differs from pull request most recent head b964baa. Consider uploading reports for the commit b964baa to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #255 +/- ## ========================================== + Coverage 53.04% 59.88% +6.83% ========================================== Files 33 33 Lines 1623 1623 Branches 288 288 ========================================== + Hits 861 972 +111 + Misses 674 548 -126 - Partials 88 103 +15 ``` | [Flag](https://app.codecov.io/gh/opensearch-project/dashboards-query-workbench/pull/255/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [dashboards-query-workbench](https://app.codecov.io/gh/opensearch-project/dashboards-query-workbench/pull/255/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `59.88% <ø> (+6.83%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.