Repository navigation
chore: stop silencing defaultProps warnings fixed in Paragon 23.24.0 - #2289
Open
brian-smith-tcril wants to merge 1 commit into
Open
brian-smith-tcril wants to merge 1 commit into
brian-smith-tcril wants to merge 1 commit into
Conversation
CollapsibleBody, CollapsibleTrigger, CollapsibleVisible, FormControlDecorator and StatefulButton no longer declare defaultProps as of Paragon 23.24.0, so the suite no longer needs to silence them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2289 +/- ##
=======================================
Coverage 99.27% 99.27%
=======================================
Files 373 373
Lines 5505 5505
Branches 1465 1469 +4
=======================================
Hits 5465 5465
Misses 40 40 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
arbrandes
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/setupTest.jssilences thedefaultPropswarnings of the Paragon components this app renders, under openedx/paragon#3043. Paragon 23.24.0, locked on master since #2284, removeddefaultPropsfrom five of them. This drops those five names from the pattern, so the suite fails again if one of them starts warning. Test-setup change only.What changed
CollapsibleBody,CollapsibleTrigger,CollapsibleVisible,FormControlDecoratorandStatefulButtonfrom the Support for defaultProps will be removed from function components in a future major release. paragon#3043 pattern. The other 24 names on that line stay.Testing
Run on master at
ed620369(Paragon 23.24.0, react-bootstrap 1.6.8), Node 24.22.3. Master has since moved to9b69394f; its lock resolves the same Paragon and react-bootstrap versions.dist/, the five components have nodefaultProps(Collapsible*: refactor: convert Collapsible and TransitionReplace components to TypeScript paragon#4145,StatefulButton: feat: convert StatefulButton to TypeScript paragon#4138). The other 24 names are still plain function components withdefaultProps.npm run testbefore the change, with a temporary log line insilenceMessage: on this pattern exactly the 24 remaining names fired and none of the five. Every other pattern in the list fired too.npm run testwith the five removed: 0 "Support for defaultProps" lines and 0 "Expected test not to call console." failures.src/product-tours/ProductTours.test.jsx(2 to 4 tests, timeouts on a loaded machine), with and without this change. test: wait for the tour dialog before finding its button by name #2287 is about those.npm run lintreports 0 errors.🤖 Generated with Claude Code