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

[REVIEW] use @swc/test to reduce test time #228

Merged
merged 11 commits into from
Apr 5, 2024

Conversation

ducphamle2
Copy link
Collaborator

@ducphamle2 ducphamle2 commented Mar 31, 2024

image image

Copy link

github-actions bot commented Mar 31, 2024

badge

Code Coverage Summary

Filename                                                                           Stmts    Miss  Cover    Missing
-------------------------------------------------------------------------------  -------  ------  -------  --------------------------------------------------------------------------------------------------------------------------------------
packages/oraidex-common-ui/src/components/TVChartContainer/helpers/constants.ts        6       0  100.00%
packages/oraidex-common-ui/src/components/TVChartContainer/helpers/utils.ts           33       2  93.93%   23-24
packages/oraidex-common/src/bigdecimal.ts                                             80      29  63.75%   23, 40, 45-53, 120-153, 173-177
packages/oraidex-common/src/constant.ts                                              121       0  100.00%
packages/oraidex-common/src/helper.ts                                                209      66  68.42%   141, 145-146, 162-167, 265-267, 275-287, 297-301, 324-328, 332-334, 352-371, 375-382, 386-387, 391-392, 397-405, 415-436
packages/oraidex-common/src/network.ts                                                17       0  100.00%
packages/oraidex-common/src/pairs.ts                                                  27       2  92.59%   151, 157
packages/oraidex-common/src/token.ts                                                  27       0  100.00%
packages/universal-swap/src/handler.ts                                               260     148  43.07%   71, 93, 108-109, 118-119, 149-169, 232-261, 272-384, 390-633, 655, 671, 709, 728, 774
packages/universal-swap/src/helper.ts                                                347      73  78.96%   74-75, 212, 245, 249, 273, 346, 353, 366-369, 463, 472-510, 543, 594, 611, 639, 646-669, 703, 707, 727-760, 845-854, 866-871, 890, 916
packages/universal-swap/src/swap-filter.ts                                            11       0  100.00%
packages/universal-swap/src/types.ts                                                   2       0  100.00%
packages/universal-swap/src/proto/proto-gen.ts                                        13       0  100.00%
TOTAL                                                                               1153     320  72.24%

Diff against main

Filename                                                                       Stmts    Miss  Cover
---------------------------------------------------------------------------  -------  ------  --------
packages/oraidex-common-ui/src/components/TVChartContainer/helpers/utils.ts        0      +1  -3.03%
packages/oraidex-common/src/constant.ts                                          -11       0  +100.00%
packages/oraidex-common/src/helper.ts                                             -1      +1  -0.62%
packages/oraidex-common/src/network.ts                                           -51       0  +100.00%
packages/oraidex-common/src/pairs.ts                                             -17       0  -2.86%
packages/universal-swap/src/handler.ts                                            -3      -3  +0.49%
packages/universal-swap/src/helper.ts                                            +29      +2  +1.29%
packages/universal-swap/src/types.ts                                              -8       0  +100.00%
TOTAL                                                                            -62      +1  -0.55%

Results for commit: f649ad8

Minimum allowed coverage is 0%

♻️ This comment has been updated with latest results

@ducphamle2 ducphamle2 changed the title [TEST] use @swc/test to reduce test time [REVIEW] use @swc/test to reduce test time Mar 31, 2024
meomeocoj
meomeocoj previously approved these changes Apr 2, 2024
Copy link
Contributor

@meomeocoj meomeocoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Copy link
Contributor

@trung2891 trung2891 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ducphamle2 ducphamle2 merged commit 8b23ecc into main Apr 5, 2024
1 check passed
@ducphamle2 ducphamle2 deleted the test/swc-jest-reduce-test-time branch April 5, 2024 01:53
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.

None yet

3 participants