@testing-library/react version: 10.0.2react version: 16.9.0node version: 10.15.3npm (or yarn) version: yarn 1.6.0I updated @testing-library/react to latest in my project (using typescript)
The version of the code is fine, but @types/testing-library__dom are still on version 6.0.1 and not the latest 7 (missing screen, waitFor...etc.)

This * in dependencies, seems to be pulling version 6
https://unpkg.com/browse/@types/testing[email protected]/package.json
Or at least this is what my yarn.lock says.

Removing the lockfile entries for the @types/testing-library__* packages and running yarn install should pull in the latest versions. See #620 for more context.
Newly installed node_modules and fresh yarn.lock seem to make this work now.
All you have to do:
node_modules/yarn.lockyarnHope this is useful to someone, as I've spent quit a bit of time now debugging what was going on.
Removing the lockfile entries for the
@types/testing-library__*packages and runningyarn installshould pull in the latest versions. See #620 for more context.
Thank you! I discovered that myself as well. Tried everything till I came up with that.
Remove yarn.lock
Don't do that. This might cause cascading issues. Unless you have a solid test suite you should only selectively upgrade your dependencies. Search for the entries that resolve the specific dependency and remove that entry e.g.

Most helpful comment
Don't do that. This might cause cascading issues. Unless you have a solid test suite you should only selectively upgrade your dependencies. Search for the entries that resolve the specific dependency and remove that entry e.g.