Making unit tests fail when PropTypes error

added by JavaScript Kicks
6/3/2019 7:12:33 AM

464 Views

PropTypes are a great way to document your components and I generally advise that everyone do this fairly strictly. In fact, we have an ESLint rule that ensures all PropTypes are declared. If you're using TypeScript/Flow, you don't need to be using PropTypes.


0 comments