---
title: "Comment by Murat on \"How to create a Next.js project with TypeScript, Jest, React Testing Library and Test Renderer\" | Hashnode"
description: "Maybe you know how to fix TS error Property &#x27;toBeInTheDocument&#x27; does not exist on type &#x27;Matchers &#x27;. I have the same config as yours and I ha"
url: "https://hashnode.com/posts/how-to-create-a-nextjs-project-with-typescript-jest-react-testing-library-and-test-renderer/610589d333a2a43971a2d5d1/comment/61ebc7dda12088017fbe8fa1"
---

[Discussion](https://hashnode.com/posts/how-to-create-a-nextjs-project-with-typescript-jest-react-testing-library-and-test-renderer/610589d333a2a43971a2d5d1)

Comment [How to create a Next.js project with TypeScript, Jest, React Testing Library and Test Renderer](https://hashnode.com/posts/how-to-create-a-nextjs-project-with-typescript-jest-react-testing-library-and-test-renderer/610589d333a2a43971a2d5d1)

[Murat](https://hashnode.com/@muratx10)

[Jan 22, 2022](https://hashnode.com/posts/how-to-create-a-nextjs-project-with-typescript-jest-react-testing-library-and-test-renderer/610589d333a2a43971a2d5d1/comment/61ebc7dda12088017fbe8fa1)

Maybe you know how to fix TS error

```
Property 'toBeInTheDocument' does not exist on type 'Matchers '.
```

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!
