MCPcopy
hub / github.com/jestjs/jest / toHaveBeenLastCalledWith

Method toHaveBeenLastCalledWith

packages/expect/src/types.ts:246–246  ·  view source on GitHub ↗

* If you have a mock function, you can use `.toHaveBeenLastCalledWith` * to test what arguments it was last called with.

(...expected: MockParameters<T>)

Source from the content-addressed store, hash-verified

244 * to test what arguments it was last called with.
245 */
246 toHaveBeenLastCalledWith(...expected: MockParameters<T>): R;
247 /**
248 * Use to test the specific value that a mock function last returned.
249 * If the last call to the mock function threw an error, then this matcher will fail

Calls

no outgoing calls

Tested by

no test coverage detected