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
Mock callsFake() method is not typed. The input argument passed to the mock function should be typed with an intersection of all Client commands inputs, and similar for the output.
Please vote with 👍 if you need this.
The text was updated successfully, but these errors were encountered:
Presumably for the output we would want CommandResponse<TCommandOutput> (as it is for resolves) rather than an intersection of the all possible output types (guessing the same would apply for the input)?
In the mean time maybe the README is a touch misleading "fully typed - same type control for declaring mock's behavior as when writing regular code"
Mock
callsFake()
method is not typed. Theinput
argument passed to the mock function should be typed with an intersection of all Client commands inputs, and similar for the output.Please vote with 👍 if you need this.
The text was updated successfully, but these errors were encountered: