Back to Sinon

spy.getCalls

docs/concepts/spies/api/get-calls.md

22.1.0469 B
Original Source

spy.getCalls

Returns an Array of all calls recorded by the fake, spy or stub.

<<< ../../../.vitepress/tests/docs/spies/api/get-calls.test.js

Resetting getCalls to default

You can reset the call history in three different ways: