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
Test code: expect(methodName).toHaveBeenCalledExactlyOnceWith(1stArgument)Implementation code: methodName(1stArgument,2ndArgument)
What you did:
Asserted 'toHaveBeenCalledExactlyOnceWith' with an incorrect number of arguments.
What happened (please provide anything you think will help):
The error message states:
'Expected mock function to have been called exactly once with [1stArgument], but it was called with [1stArgument]'
The output should presumably be 'Expected mock function to have been called exactly once with [1stArgument], but it was called with [1stArgument, 2ndArgument]'.
First argument in question was an object, the second was a primitive Boolean. This is obviously quite painful as the output from the failed assertion looks to be correct, despite the reported error.
Reproduction repository (if possible):
N/A
The text was updated successfully, but these errors were encountered:
Bug
package
version: 4.0.2node
version: 20.12.0npm
(oryarn
) version: 10.5.0Relevant code or config
What you did:
Asserted 'toHaveBeenCalledExactlyOnceWith' with an incorrect number of arguments.
What happened (please provide anything you think will help):
The error message states:
'Expected mock function to have been called exactly once with [1stArgument], but it was called with [1stArgument]'
The output should presumably be 'Expected mock function to have been called exactly once with [1stArgument], but it was called with [1stArgument, 2ndArgument]'.
First argument in question was an object, the second was a primitive Boolean. This is obviously quite painful as the output from the failed assertion looks to be correct, despite the reported error.
Reproduction repository (if possible):
N/A
The text was updated successfully, but these errors were encountered: