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
Copy file name to clipboardExpand all lines: exercises/03.assertions/01.solution.custom-matchers/README.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,16 @@ There are two interfaces from `vitest` that I extend using module augmentgation:
44
44
-`Assertion<T>`, which controls the matchers returned by calling `expect()`;
45
45
-`MatchersDeclaration`, which annotates the matcher declarations passed to `expect.extend()`.
46
46
47
+
<callout-info>Since Vitest 3.2, you can extend the `Matchers` interface to have type-safe assertions in `expect.extend`, `expect().*` and `expect.*` methods at the same time.</callout-info>
0 commit comments