yarn add typescript @types/node @types/react @types/react-dom @types/jest --dev #...then rename your .js files to .tsx