Skip to content
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

How to use this library with VSCode autocomplite? #160

Closed
antonpegov opened this issue Nov 7, 2019 · 5 comments · Fixed by #189
Closed

How to use this library with VSCode autocomplite? #160

antonpegov opened this issue Nov 7, 2019 · 5 comments · Fixed by #189
Labels

Comments

@antonpegov
Copy link

I using react with typescript and everything work fine except I can't setup my vscode autocomplete to use this methods.

@gnapse
Copy link
Member

gnapse commented Nov 7, 2019

Most probably related to #123

@gnapse
Copy link
Member

gnapse commented Jan 22, 2020

🎉 This issue has been resolved in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@GideonZhao
Copy link

Could anyone please help with this? I'm facing the same issue here. I used a simple app to test this, here is the "package.json":

{ "scripts": { "test": "jest" }, "dependencies": { "@testing-library/dom": "^8.20.0", "@testing-library/jest-dom": "^5.16.5", "jest": "^29.4.2", "jest-environment-jsdom": "^29.4.2" } }

However, the VSCode doesn't resolve any jest-dom matchers:
image

@Jahmilli
Copy link

@GideonZhao did you import the type package? As suggested in the related issue, just do npm i -D @types/testing-library__jest-dom (or Yarn, pnpm equivalent for installing dev packages) and you should be able to see the types :)

@GideonZhao
Copy link

@GideonZhao did you import the type package? As suggested in the related issue, just do npm i -D @types/testing-library__jest-dom (or Yarn, pnpm equivalent for installing dev packages) and you should be able to see the types :)

Hi @Jahmilli Sorry, I didn't look at the previous comments carefully. After importing the type package, I still cannot see the "toHaveClass" in autocomplete.

package.json:
{ "dependencies": { "@testing-library/dom": "^9.0.0", "@testing-library/jest-dom": "^5.16.5", "@types/testing-library__jest-dom": "^5.14.5", "jest": "^29.4.3", "jest-environment-jsdom": "^29.4.3" } }
code:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants