- Spy on function example?
- Calls: firstCall / secondCall / thirdCall / lastCall
- Called
- calledBefore / calledAfter / calledImmediatelyBefore / calledImmediatelyAfter
- calledOn / alwaysCalledOn / calledWith / alwaysCalledWith / calledWithExactly / alwaysCalledWithExactly
- calledWithMatch / alwaysCalledWithMatch
- calledWithNew / neverCalledWith / neverCalledWithMatch
- threw / alwaysThrew
- returned / alwaysReturned
- getCall(num) / getCalls
- thisValues / exceptions / returnValues
- printf
- createStubInstance
- onFirstCall / onSecondCall / onThirdCall
- reset / resetHistory / resetBehavior
- returnsArg / returnsThis
- resolves / throws / rejects
- callsArg / callsArgOn / callsArgWith / callsArgOnWith
- callThrough
- usingPromise(promiseLibrary)
- yields / yieldsOn / yieldsTo / yieldsToOn
- callArg / callArgWith
- callsArgAsync / callsArgOnAsync / callsArgWithAsync / callsArgOnWithAsync
- yieldsAsync / yieldsOnAsync / yieldsToAsync / yieldsToOnAsync
- addBehavior
- get / set / value
- Mocks (and mock expectations) are fake methods (like spies) with pre-programmed behavior (like stubs) as well as pre-programmed expectations.
- Fake timers.
- Fake XHR and server.
- getMockName
- mock.instances
- mockClear / mockName / mockReturnThis
- Timer mocks
- Globals, Expect and Matchers examples.
- The Jest Object