Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Revert jest tests config to use babel (#1319) #1320

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Dec 21, 2023

Description

Revert to jest tests to using babel. This PR aligns with the long term solution mentioned in the below issue.
This PR removes ts-jest dependency and aligns with all other dashboards plugins to use babel for transform. Also, updated snapshots to align 2.x and main snapshots.

Issues Resolved

#1306

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit a262aaf)
Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit 66d5621)
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (138bd21) 57.44% compared to head (50a7453) 51.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #1320      +/-   ##
==========================================
- Coverage   57.44%   51.61%   -5.83%     
==========================================
  Files         330      305      -25     
  Lines       12099    10652    -1447     
  Branches     2791     2789       -2     
==========================================
- Hits         6950     5498    -1452     
- Misses       5103     5108       +5     
  Partials       46       46              
Flag Coverage Δ
dashboards-observability 51.61% <ø> (-5.83%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ps48 ps48 changed the title [Backport 2.x] Revert to jest tests to using babel (#1319) [Backport 2.x] Revert jest tests config to use babel (#1319) Dec 21, 2023
@ps48 ps48 marked this pull request as ready for review December 21, 2023 17:47
@ps48 ps48 merged commit 2c969e3 into opensearch-project:2.x Dec 21, 2023
7 of 17 checks passed
mengweieric pushed a commit to mengweieric/dashboards-observability that referenced this pull request Dec 22, 2023
…ect#1319) (opensearch-project#1320)

* update jest config to use babel instead of ts-jest

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit a262aaf)

* remove ts-jest package

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit 66d5621)

* update yarn.lock file

Signed-off-by: Shenoy Pratik <[email protected]>

* update snapshots

Signed-off-by: Shenoy Pratik <[email protected]>

---------

Signed-off-by: Shenoy Pratik <[email protected]>
RyanL1997 added a commit to RyanL1997/dashboards-observability that referenced this pull request Apr 18, 2024
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…ect#1319) (opensearch-project#1320)

* update jest config to use babel instead of ts-jest

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit a262aaf)

* remove ts-jest package

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit 66d5621)

* update yarn.lock file

Signed-off-by: Shenoy Pratik <[email protected]>

* update snapshots

Signed-off-by: Shenoy Pratik <[email protected]>

---------

Signed-off-by: Shenoy Pratik <[email protected]>
(cherry picked from commit 2c969e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants