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
Similar to #6660, it looks like the Assertion<T> type is being found in @vitest/expect now instead of vitest itself. This changed from v2.1.2 to v2.1.3. As a result, the Extending Matchers documentation on Vitest's own website no longer works; TypeScript will not find the custom matcher functions. If this change is desired, please update the documentation on the website to match.
Reproduction
The code in Extending Matchers no longer works as-is. Instead, it must be changed to the following:
Hello @dosolkowski-work. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
Similar to #6660, it looks like the
Assertion<T>
type is being found in@vitest/expect
now instead ofvitest
itself. This changed from v2.1.2 to v2.1.3. As a result, the Extending Matchers documentation on Vitest's own website no longer works; TypeScript will not find the custom matcher functions. If this change is desired, please update the documentation on the website to match.Reproduction
The code in Extending Matchers no longer works as-is. Instead, it must be changed to the following:
In addition, depending on the package manager setup, it may be necessary to add a package reference to
@vitest/expect
.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: