-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Type Promisify<...>
has no call signatures
#2866
Comments
Promisify<...>
has no call signatures
This appears to still be a problem and it is quite annoying because it makes using the Chai API with promises very inconvenient in TypeScript projects. |
Together with #3941 this seems to leave no good options for asserting errors thrown in async functions if you are using TypeScript. |
This is still an issue in the latest version of Vitest. |
It seems to also be the case with await expect(something).resolves.toSatisfy(predicate) |
@QuentinRoy Typing of |
Describe the bug
I'm trying to reproduce
![image](https://user-images.githubusercontent.com/46621668/218691218-ebb8a651-a091-4470-81e2-6531a3904046.png)
resolves
example. The Chai style assertion throws strange Typescript error:Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-52dmdx?file=test/basic.test.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: