mardi 5 septembre 2017

How to assert function invocation order in jest

I am mocking two functions with with jest.fn:

let first = jest.fn();
let second = jest.fn();

How can I assert that first called before second?

What I am looking for is something like sinon's .calledBefore assertion.

Aucun commentaire:

Enregistrer un commentaire