testing-library / dom-testing-library

🐙 Simple and complete DOM testing utilities that encourage good testing practices.
https://testing-library.com/dom
MIT License
3.25k stars 463 forks source link

feat(config): add `reactStrictMode` for react-testing-library #1256

Closed yinm closed 10 months ago

yinm commented 10 months ago

What:

Add reactStrictMode to config for react-testing-library

Why:

ref: https://github.com/testing-library/react-testing-library/issues/338#issuecomment-1669035236

To support default reactStrictMode configuration

( @eps1lon If I misunderstand, please tell me 🙏 )

How:

I added reactStrictMode to config in this PR. Next, I will create PR in react-testing-library. It enables StrictMode render by using reactStrictMode configuration.

Checklist:

eps1lon commented 10 months ago

This option should be added to https://github.com/testing-library/react-testing-library instead