You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this issue is often related to how diffrent versions of Typescript and Jest interact, especially when type definitions are involved. You might want to check your Typescript configurations:
In your tsconfig.json file, ensure this option is set:
{
"compilerOptions": {
"jsx": "react-jsx"
}
}
If this doesn't work, try explicitly importing the expect function and any matchers you're using from Jest:
Describe the bug
I tried to generate a new project using yarn create react-app my-project --template typescript. But I have a jest matcher errors right away.
Environment
local dev
Steps to reproduce
yarn create react-app my-project --template typescript
cd my-project
yarn start
Thanks!
The text was updated successfully, but these errors were encountered: