You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Used Package Manager
npm
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
It looks like a problem with @types/chai, the type of a is not correct.
This is interesting. Typeof a is callable, but most of the other chainables are not, which begs the questing of how do we support it? Right now I just replicated the Chai.Assertion type with this bug.
Describe the bug
A typescript error occurs when using
expect(...).to.be.a(...)
.This seems to be a regression: there is no typescript error on the version used by the demo stackblitz (0.0.136).
Reproduction
https://stackblitz.com/edit/node-spzkwl?file=test%2Fbasic.test.ts&view=editor
Note the typescript error on line 20.
System Info
The text was updated successfully, but these errors were encountered: