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
This occurs again. A subsequent PR introduced a regression by removing the spread operator. The method can now only be called with a single parameter, while the original from jest can be called with any number of parameters, since you can spy on methods being called with any number of parameters.
Bug
package
version: 3.1.0node
version: 18.8.0npm
version: 8.18.0Relevant code or config
What you did:
Reproduction repository (if possible):
https://github.com/jest-community/jest-extended/blob/main/types/index.d.ts#L177
Feature Request
Description:
The
toHaveBeenCalledOnceWith
method typing has no parameters, failing in typescript withexpected 0 parameters but got x
Possible solution: The typing should have parameters
The text was updated successfully, but these errors were encountered: