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

Function isToHaveLast

packages/expect/src/__tests__/spyMatchers.test.ts:1071–1075  ·  view source on GitHub ↗
(
    returnedWith: string,
  )

Source from the content-addressed store, hash-verified

1069 }
1070
1071 function isToHaveLast(
1072 returnedWith: string,
1073 ): returnedWith is 'toHaveLastReturnedWith' {
1074 return returnedWith === 'toHaveLastReturnedWith';
1075 }
1076 test('works only on spies or jest.fn', () => {
1077 const fn = function fn() {};
1078

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected