lundi 18 septembre 2017

I see jest.fn(); at the top of a test - what is this for?

At the top of a test I see I see

jest.fn();

What is this for?

Having scanned the documentation, I thought this function call was for creating mock functions in Jest, but the result is not being assigned, which surprises me.

Aucun commentaire:

Enregistrer un commentaire