Integrating Jest Testing in a TypeScript React app without using Create React App
Pre-requisites
Install React and TypeScript
$ npm i react react-dom typescript
Install type definations:
$ npm i --save-dev @types/react @types/react-dom
Install Jest
Jest is a testing framework created by Facebook and ts-jest is a TypeScript pre...
Β·hashnode.comRead the article
Luis Henrique
Nice! How to test functional components with hooks?