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

Upgrade to use Node.js 20 and make components compatible with upgraded packages #2562

Merged
merged 42 commits into from
Aug 23, 2024

Conversation

eason9487
Copy link
Member

Changes proposed in this Pull Request:

This PR wraps up PRs:

💡 All code changes have been reviewed and tested in the respective PRs. Therefore, this PR should not require extra rounds of code reviews.

Changelog entry

Fixed by running `npm run lint:js -- --fix`.
Migration includes:
- Invoke `userEvent.setup()` in the test itself and before the component is rendered.
- Adding `async` and `await` as all APIs are asynchronous.
- No need to be wrapped in `act`.
- Replace the simulation of pressing buttons with the `keyboard` API.
- `clear()` is changed to only support editable elements only.
@eason9487 eason9487 self-assigned this Aug 23, 2024
@github-actions github-actions bot added the changelog: dev Developer-facing only change. label Aug 23, 2024
@eason9487 eason9487 added changelog: none Skip changelog entry for this PR and removed changelog: dev Developer-facing only change. labels Aug 23, 2024
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 76.92308% with 24 lines in your changes missing coverage. Please review.

Project coverage is 62.8%. Comparing base (ec86226) to head (e46bd2e).
Report is 43 commits behind head on develop.

Files Patch % Lines
js/src/components/app-tooltip/index.js 50.0% 3 Missing and 1 partial ⚠️
js/src/components/tree-select-control/index.js 78.6% 3 Missing ⚠️
...ute-mapping/attribute-mapping-delete-rule-modal.js 0.0% 1 Missing and 1 partial ⚠️
.../attribute-mapping/attribute-mapping-rule-modal.js 50.0% 1 Missing and 1 partial ⚠️
js/src/components/tree-select-control/control.js 0.0% 1 Missing and 1 partial ⚠️
js/src/data/actions.js 50.0% 2 Missing ⚠️
...roduct-feed/review-request/review-request-modal.js 50.0% 2 Missing ⚠️
js/src/components/paid-ads/campaign-assets-form.js 66.7% 1 Missing ⚠️
js/src/components/tree-select-control/checkbox.js 50.0% 1 Missing ⚠️
js/src/data/utils.js 95.8% 1 Missing ⚠️
... and 4 more
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             develop   #2562      +/-   ##
============================================
- Coverage       65.0%   62.8%    -2.3%     
============================================
  Files            475     321     -154     
  Lines          17900    5085   -12815     
  Branches           0    1234    +1234     
============================================
- Hits           11640    3191    -8449     
+ Misses          6260    1721    -4539     
- Partials           0     173     +173     
Flag Coverage Δ
js-unit-tests 62.8% <76.9%> (?)
php-unit-tests ?

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

Files Coverage Δ
...ion/phone-number-card/verification-code-control.js 98.2% <100.0%> (ø)
...ponents/free-listings/setup-free-listings/index.js 6.8% <ø> (ø)
...components/paid-ads/asset-group/images-selector.js 100.0% <ø> (ø)
js/src/components/tree-select-control/tags.js 92.9% <100.0%> (ø)
...e-card/program-toggle/pause-program-modal/index.js 14.3% <ø> (ø)
...emove-program-button/remove-program-modal/index.js 7.1% <ø> (ø)
js/src/gtag-events/utils.js 96.2% <100.0%> (ø)
js/src/hooks/useMCIssuesTotals.js 100.0% <100.0%> (ø)
js/src/product-feed/issues-table-card/index.js 100.0% <100.0%> (ø)
.../product-feed-table-card/edit-visibility-action.js 52.9% <ø> (ø)
... and 19 more

... and 767 files with indirect coverage changes

@eason9487 eason9487 merged commit 981f1a8 into develop Aug 23, 2024
10 checks passed
@eason9487 eason9487 deleted the dev/use-nodejs-20 branch August 23, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: none Skip changelog entry for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant