-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Property 'expand' does not exist on type 'MatcherUtils'. #7091
Comments
Hey @haldunanil, thanks for using Jest! If you're able to complete the issue template, I'm happy to re-open and take a look 👍 |
@rickhanlonii yeah my bad, trigger fingers, submitted too soon. Please have a look now :) |
Thanks for the deets @haldunanil Where did you see the usage of |
The
|
Seems like an error in whatever TS typings you use - Jest doesn't ship with typings and |
@SimenB can you clarify how to use this? |
Clarify what? Your typing is wrong, it works. |
I'm not clear on how what the correct typing should look like. |
It's a Boolean. Please open up an issue with whatever project you got typings from. Jest does not ship any typings at all, so this is not the correct place to raise an issue for it |
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
When using TypeScript 3.1.1 with Jest 23.6.0, I get an error when trying to expand Jest's
expect
with a custom method.To Reproduce
this.expand
throws the TS2339 error mentioned in the title.Expected behavior
this.expand
should work as intended.Link to repl or repo (highly encouraged)
N/A
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: