New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Docs, Usage/Advanced-hooks/Context example got error #649
Comments
Hmm, we'll check it out. |
@mpeyper Thanks for looking into it. Has there been any follow up? The above example is a copy of whats currently on the official testing-library example. I'm running into the same issue with the following versioning:
|
Hi @rharrigan-sugarcrm, honestly probably not and if I did look then I don’t remember. In your case though, if you are using React 18 you should be using |
react-hooks-testing-library
version: 7.0.1react
version: 17.0.2react-dom
version (if applicable): 17.0.2react-test-renderer
version (if applicable): 17.0.2node
version: 15.13.10npm
(oryarn
) version: 1.22.10(yarn)Relevant code or config:
useCounter.ts
useCounter.test.ts
What you did:
I just follow the code in react testing library hooks docs.
and yarn test
What happened:
when yarn test, I got this error
Reproduction:
Problem description:
I could not move forward anymore.
Suggested solution:
The text was updated successfully, but these errors were encountered: