From 577aa30e902d21a41baa82921892b67a040567f9 Mon Sep 17 00:00:00 2001 From: Brian Smith <112954497+brian-smith-tcril@users.noreply.github.com> Date: Thu, 3 Dec 2026 09:34:04 -0500 Subject: [PATCH] chore: stop silencing defaultProps warnings fixed in Paragon 23.24.0 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 --- src/setupTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setupTest.js b/src/setupTest.js index d0c7efada2..4b1d556868 100644 --- a/src/setupTest.js +++ b/src/setupTest.js @@ -21,7 +21,7 @@ failOnConsole({ /^⚠️ React Router Future Flag Warning: .*`v7_startTransition`/, /^⚠️ React Router Future Flag Warning: .*`v7_relativeSplatPath`/, // https://github.com/openedx/paragon/issues/3043 - /^Warning: (AlertModal|CardItem|CardView|CollapsibleBody|CollapsibleTrigger|CollapsibleVisible|DataTable|DataTableLayout|FormControlDecorator|FormControlDecoratorGroup|MarketingModal|ModalDialogBody|ModalDialogFooter|ModalDialogHero|ModalDialogHeroBackground|ModalDialogHeroContent|ModalDialogTitle|ModalPopup|PopoverContent|PopperElement|SearchFieldAdvanced|SearchFieldInput|SearchFieldLabel|SearchFieldSubmitButton|StandardModal|StatefulButton|Table|TableFooter|Tabs): Support for defaultProps will be removed from function components/, + /^Warning: (AlertModal|CardItem|CardView|DataTable|DataTableLayout|FormControlDecoratorGroup|MarketingModal|ModalDialogBody|ModalDialogFooter|ModalDialogHero|ModalDialogHeroBackground|ModalDialogHeroContent|ModalDialogTitle|ModalPopup|PopoverContent|PopperElement|SearchFieldAdvanced|SearchFieldInput|SearchFieldLabel|SearchFieldSubmitButton|StandardModal|Table|TableFooter|Tabs): Support for defaultProps will be removed from function components/, // react-share 4.x: its icon components declare defaultProps. 5.x does not, but drops the Facebook `quote` param. /^Warning: Icon: Support for defaultProps will be removed from function components/, // @edx/frontend-lib-special-exams 5.x: its own components declare defaultProps.