The Practical Guide to React Testing Library with TypeScript

Toru Eguchi
JavaScript in Plain English
8 min readApr 29, 2020

--

Everyone knows writing tests is super important for software development. It enables us to change codes more speedy with less bugs.

When it comes to frontend, React Testing Library is becoming popular because it’s easier to test React hooks compared with enzyme. However, there is not enough articles explaining it with TypeScript.

--

--

I am a full-stack engineer. I have strength on frontend (React, Vue, Next.js…) and on backend (express, fastify and Ruby on Rails).