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: docs/guide/migration.md
+20-4
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,24 @@ This makes `.suite` optional; if the task is defined at the top level, it will n
78
78
79
79
This change also removes the file from `expect.getState().currentTestName` and makes `expect.getState().testPath` required.
80
80
81
+
### Simplified generic types of mock functions (e.g. `vi.fn<T>`, `Mock<T>`)
82
+
83
+
Previously `vi.fn<TArgs, TReturn>` accepted two generic types separately for arguemnts and return value. This is changed to directly accept a function type `vi.fn<T>` to simplify the usage.
0 commit comments