gaearon / ama

Ask me anything!
222 stars 5 forks source link

Testing PropTypes #122

Open zwhitchcox opened 8 years ago

zwhitchcox commented 8 years ago

Hey Dan!

Thanks for being so accessible haha...

I was just wondering what you thought about testing React.PropTypes. Not, like specifying a prop type on a component, but actually writing tests to make sure that the prop types are there.

I'm working at a new place where they test that, because they want 100% coverage, and I was just wondering what your thoughts were on that, because I have never encountered this before.

Thanks!

Zane