-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[@jest/globals] only exporting type #9922
Comments
Seems like 25.5.0 severely broke TypeScript support. When I update from 25.4.0 to 25.5.0,
so I tried the In any case I would like to not do any changes to my code since it's only a minor version upgrade, as said everything works just fine with 25.4.0 |
Aww, that's too bad. I'll fix that. (somehow... export dummy functions?). @tmkn Your first issue is different. 25.5 works fine for me using TS at work. EDIT: Hmm, it works for me importing from |
@SimenB yes I know, I wasn't sure if I should create a ticket or if I'm missing something obvious since I didn't see a ticket yet and dependabot also sees a 98% success rate. Just to be clear, updating to 25.5.0 still leaves describe, test, expect globally available? Since it's not a major version upgrade? If it worked for 25.4.0 then everything should work as is for 25.5.0? |
They are all still globally available, yes. |
@BenGladman fix published in 25.5.2 🙂 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
The new
@jest/globals
package only exports the types of the functions, and typescript shows an error when I try to use themTo Reproduce
Steps to reproduce the behavior:
Expected behavior
no typescript errors
Link to repl or repo (highly encouraged)
https://github.com/BenGladman/jest-issue
envinfo
The text was updated successfully, but these errors were encountered: