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

Fix test warnings about deprecated defaultProps #1531

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

jamescrowley
Copy link
Contributor

React deprecated defaultProps back in 2019, and we're getting test warnings about it - facebook/react#16210. This switches them to use JS default props instead.

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.83%. Comparing base (9b1f140) to head (3d2c1c6).
Report is 67 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1531      +/-   ##
==========================================
- Coverage   85.85%   85.83%   -0.03%     
==========================================
  Files         229      229              
  Lines       21709    21688      -21     
  Branches     1927     1913      -14     
==========================================
- Hits        18639    18616      -23     
- Misses       3034     3036       +2     
  Partials       36       36              
Flag Coverage Δ
backend 99.07% <ø> (ø)
frontend 82.64% <ø> (-0.04%) ⬇️

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.

@HaGuesto
Copy link
Member

Copy link
Member

@HaGuesto HaGuesto left a comment

Choose a reason for hiding this comment

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

code review passed

For @fhenrich33 to merge when he thinks fit.

@jamescrowley jamescrowley merged commit 6f25ec9 into master Oct 8, 2024
11 checks passed
@jamescrowley jamescrowley deleted the react-defaultProps branch October 8, 2024 21:45
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.

2 participants