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 'ExpectStatic' has no call signatures #5670
Comments
Hello @aryzing. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
Inside the vitest declare module '@vitest/expect' {
interface MatcherState {
environment: VitestEnvironment;
snapshotState: SnapshotState;
}
interface ExpectStatic {
addSnapshotSerializer: (plugin: Plugin_2) => void;
} Other files inside dist don't have a hash/id in their name, so this one stands out -- is it meant to be there? |
Yes. |
Added a repro, thanks |
I don' see any type errors in your reproduction. Try reinstalling your dependencies. |
Reinstalling only worked after clearing bun's cache, |
Describe the bug
Tests using the global
expect
function have the following type error,Reproduction
Install latest version of vitest and write a test containing a call to
expect()
.See repro repo.
System Info
Used Package Manager
bun
^ please add bun to this section of the issue template, I had to manually edit it.
Validations
The text was updated successfully, but these errors were encountered: