lundi 29 octobre 2018

Possible to mock module within module using Jest?

I want to mock a dependency (one of the files) that is required from within a module in my node_modules folder using jest.

Is this possible? I can't find anything in the API that would let me do it without stubbing out the entire thing.

Aucun commentaire:

Enregistrer un commentaire