How to Test React Components in TypeScript code example
Example: react typescript testing
npm install @types/jest @testing-library/react @testing-library/jest-dom jest ts-jest
# Yarn
yarn add @types/jest @testing-library/react @testing-library/jest-dom jest ts-jest