mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
## Summary Based on - https://github.com/facebook/react/pull/27903 This PR - Silence warning in React tests - Turn on flag We want to finish cleaning up internal RTR usage, but let's prioritize the deprecation process. We do this by silencing the internal warning for now. ## How did you test this change? `yarn build` `yarn test ReactHooksInspectionIntegration -b`
12 lines
239 B
JavaScript
12 lines
239 B
JavaScript
'use strict';
|
|
|
|
module.exports = function shouldIgnoreConsoleWarn(format) {
|
|
if (typeof format === 'string') {
|
|
if (format.indexOf('Warning: react-test-renderer is deprecated.') === 0) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
};
|