Back to Sinon

spy.args

docs/concepts/spies/api/args.md

22.1.0500 B
Original Source

spy.args

Array of arguments received, spy.args[0] is an array of arguments received in the first call of the fake, spy or stub.

<<< ../../../.vitepress/tests/docs/spies/api/args.test.js

Resetting args to default

You can reset args in three different ways: