feat: add reactStrictMode option to enable strict mode render#1241
feat: add reactStrictMode option to enable strict mode render#1241eps1lon merged 8 commits intotesting-library:mainfrom
reactStrictMode option to enable strict mode render#1241Conversation
…igure` functions from DTL
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 99a3602:
|
Codecov Report
@@ Coverage Diff @@
## main #1241 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 5 +1
Lines 192 204 +12
Branches 38 42 +4
=========================================
+ Hits 192 204 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
eps1lon
left a comment
There was a problem hiding this comment.
Sorry for letting this sit so long. Much appreciated, thanks!
|
Not sure where codecov GH status check is but coverage is at 100%: https://app.codecov.io/github/testing-library/react-testing-library/commit/99a3602cc38c510bcd1546b13056fd70839feee9 |
|
@all-contributors add @yinm for code |
|
I've put up a pull request to add @yinm! 🎉 |
What:
Add
reactStrictModeoption to enable strict mode renderWhy:
ref: #338
How:
This PR updates
getConfigandconfigurefunctions from DTL for handling RTL options (e.g.reactStrictMode).This PR also wraps UI in
renderfunction withReact.StrictModecomponent whenreactStrictModeis true.By default,
reactStrictModeis false. (according to #338)Checklist:
docs site -> Add
reactStrictModeoption for RTL testing-library-docs#1318