Closed narthur closed 5 days ago
I'm migrating some code from jest-when and it would be really nice to have *Once method variants to replace .mockResolvedValueOnce and .mockReturnValueOnce.
*Once
.mockResolvedValueOnce
.mockReturnValueOnce
Never mind, didn't see that this is already supported:
when(spy, { times: 1 }).calledWith('hello').thenReturn('world')
I'm migrating some code from jest-when and it would be really nice to have
*Once
method variants to replace.mockResolvedValueOnce
and.mockReturnValueOnce
.