Describe the bug
The test suite passes even if a prop type error is present.
To Reproduce
This is my setup files
const error = console.error;
console.error = (message, ...args) => {
if (/(Invalid prop|Failed prop type)/gi.test(message)) {
throw new Error(message);
}
error.apply(console, [message, ...args]);
};
Expected behavior
The test suite doesn't pass
Actual behavior
The test suite passes and an error is displayed in the console
Screenshots

Versions:
- prop-types: 15.7.2
- React: 17.0.1
- Jest: 26.6.3
- Node: 14.15.3
Describe the bug
The test suite passes even if a prop type error is present.
To Reproduce
This is my setup files
Expected behavior
The test suite doesn't pass
Actual behavior
The test suite passes and an error is displayed in the console
Screenshots

Versions: