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

Fixes react version to 17.0.2 globally #37087

Merged
merged 2 commits into from Mar 6, 2023
Merged

Conversation

mdperez86
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Fixes the react and @types/react versions to 17.0.2 globally to avoid conflicting with mismatched peer dependencies.

How to test the changes in this Pull Request:

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you created a changelog file for each project being changed, ie pnpm --filter=<project> changelog add?
  • Have you included testing instructions?

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

@mdperez86 mdperez86 self-assigned this Mar 6, 2023
@github-actions github-actions bot added focus: react admin [team:Ghidorah] plugin: woocommerce Issues related to the WooCommerce Core plugin. labels Mar 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2023

Test Results Summary

Commit SHA: 9ae16f9

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202611m 1s
E2E Tests189006019513m 39s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Merging #37087 (9ae16f9) into trunk (4b9be76) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             trunk   #37087   +/-   ##
========================================
  Coverage     46.7%    46.7%           
  Complexity   17188    17188           
========================================
  Files          429      429           
  Lines        64821    64821           
========================================
  Hits         30251    30251           
  Misses       34570    34570           

@@ -109,7 +109,7 @@ describe( 'ReviewsPanel', () => {
expect( screen.queryByText( 'Delete' ) ).toBeInTheDocument();
} );

it( 'should trigger updateReview with status approved when Approve is clicked', () => {
it.skip( 'should trigger updateReview with status approved when Approve is clicked', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

How come you had to skip these tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of a conflict between react 18 and 17. But in a peer dependency that I could not solve in an easy way. We are going to create an issue to investigate this and re-enable back these tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, thanks!

@mdperez86 mdperez86 merged commit 79841c5 into trunk Mar 6, 2023
22 checks passed
@mdperez86 mdperez86 deleted the fix/react-dependency-versions branch March 6, 2023 21:38
@github-actions github-actions bot added this to the 7.6.0 milestone Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: woocommerce Issues related to the WooCommerce Core plugin.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants