At OpenTable it’s becoming an increasingly popular trend to use React.
One of the reasons for this is the ability for it to server-side render whilst still
giving us the client side flexibility that we all crave!
We all know to have stable, reliable software you need to have well written tests. Facebook knows this and
provides the handy Test Utilities library to make
our lives easier.
Cool — I hear you all say! But what is the best approach to testing React components?
Well unfortunately this is something that is not very well documented and if not approached in
the correct way can lead to brittle tests.
Therefore I have written this blog post to discuss the different approaches we have available to us.