-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add reactStrictMode
option to enable strict mode render
#1241
feat: add reactStrictMode
option to enable strict mode render
#1241
Conversation
…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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
reactStrictMode
option to enable strict mode renderWhy:
ref: #338
How:
This PR updates
getConfig
andconfigure
functions from DTL for handling RTL options (e.g.reactStrictMode
).This PR also wraps UI in
render
function withReact.StrictMode
component whenreactStrictMode
is true.By default,
reactStrictMode
is false. (according to #338)Checklist:
docs site -> Add
reactStrictMode
option for RTL testing-library-docs#1318