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

Function isToHaveNth

packages/expect/src/__tests__/spyMatchers.test.ts:201–205  ·  view source on GitHub ↗
(
    calledWith: string,
  )

Source from the content-addressed store, hash-verified

199 'toHaveBeenCalledWith',
200] as const)('%s', calledWith => {
201 function isToHaveNth(
202 calledWith: string,
203 ): calledWith is 'toHaveBeenNthCalledWith' {
204 return calledWith === 'toHaveBeenNthCalledWith';
205 }
206
207 test('works only on spies or jest.fn', () => {
208 const fn = function fn() {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected