Sorry, for duplicating issue #610 , but it looks like it was closed unresolved.
"@testing-library/react": "10.0.5",
"@testing-library/jest-dom": "5.9.0",
"react": "16.13.1",
Relevant code or config:
import { waitFor } from '@testing-library/react';
What happened:
I get a typescript error:
@types/testing-library__react"' has no exported member 'waitFor'.ts(2305)
@matassp what version of @testing-library/dom is in your yarn.lock or package-lock.json?
The quickest way I found to fix this was to:
IMO, I think this should be closed then. I can see this issue being annoying and uncertain but when it comes to dependency management and types on type of that this sort of comes with the territory.
I'm definitely willing to accept a pull request to bring type definitions within this repo like we did with DOM Testing Library. That would help us avoid issues like this in the future.
:tada: This issue has been resolved in version 10.1.0 :tada:
The release is available on:
npm package (@latest dist-tag)Your semantic-release bot :package::rocket:
Thank you!
Most helpful comment
I'm definitely willing to accept a pull request to bring type definitions within this repo like we did with DOM Testing Library. That would help us avoid issues like this in the future.