unexpected
                                
                                 unexpected copied to clipboard
                                
                                    unexpected copied to clipboard
                            
                            
                            
                        Assertions for propType warnings
Have you ever thought about adding an assertion for propType warnings on a React component? One method for doing that in general is illustrated here, but wouldn't it be useful to have a dedicated assertion. In general, it seems to me that testing propType warnings is probably valuable, if one is taking their use seriously.
I like this idea. At best if you can test both positively or negatively, to ascertain that it will complain where you need it to, and leave it where it shouldn't.
It should be possible to create an assertion that mocks console.error.
I have earlier been thinking about doing property based testing based on the prop types using unexpected-check. The challenge is that the prop types won't reveal any information about themselves, so you need something like https://github.com/reactjs/react-docgen to get the prop types. But it would be very cool just to say that a component shouldn't crash for valid prop types.
Isn't the original idea covered by https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md?