· 14 min read
Next.JS - testing async React components
I had the great joy of teaching a course on Next JS 13 this last week. Next has for a long time been a favorite of mine and with version 13 they have really stepped it up a notch. Or three.
But what they still are lacking, and for the life of me I cannot understand why, is a good out-of-the-box testing story.
This caused me and the group I was teaching considerable head-ache - especially when we tried to test the server-side async components that Next.JS is plugging hard.
therefore I have two goals with this post:
- Help me (and you?) to easily get started with testing
- Show a way to test
asyncserver components
Let’s do this.