Skip to content

Commit

Permalink
[RTR] Add usage warning behind flag (#27903)
Browse files Browse the repository at this point in the history
## Summary

Moving towards deprecation of ReactTestRenderer. Log a warning on each
render so we can remove the exports in a future major version.

We can enable this flag in web RTR without disrupting RN tests by
flipping the flag in
`packages/shared/forks/ReactFeatureFlags.test-renderer.js`

## How did you test this change?

`yarn test
packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.js`

DiffTrain build for [66c8346](66c8346)
  • Loading branch information
jackpope committed Feb 23, 2024
1 parent ec5b61a commit edd8fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aaf85f3af8c30252edaab5c24975cd086937b2a4
66c8346401d271588e4c400921c5dab5478fc623
1 change: 1 addition & 0 deletions compiled/facebook-www/__test_utils__/ReactAllWarnings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edd8fbe

Please sign in to comment.