How to create a Next.js project with TypeScript, Jest, React Testing Library and Test Renderer
First, create a TypeScript project with create-next-app using the --ts or --typescript flag like so:
yarn create next-app --typescript
or
npx create-next-app --ts
Add required libraries:
yarn add -D jest @types/jest react-test-renderer @types/react-t...
nightzen.hashnode.dev2 min read
Murat
Frontend Developer
Maybe you know how to fix TS error
I have the same config as yours and I have this error(
"jest": "^27.4.7", "jest-environment-jsdom": "^27.4.6", "typescript": "4.4.3", "@types/jest": "^27.4.0", "next": "^12.0.8",Thanks in advance!