mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Moving this to `internal-test-utils` so I can add helpers in the next PR for: - assertLogDev - assertWarnDev - assertErrorDev Which will be exported from `internal-test-utils`. This isn't strictly necessary, but it makes the factoring nicer, so internal-test-until doesn't need to depend on `scripts/jest`.
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;
|
|
};
|