jeudi 11 février 2021

Inject multiple mock contexts in Jest

Hello I was wondering is there a way to inject two mockContexts like in the solution here https://stackoverflow.com/a/55013256/8197395 but with two. Thanks I tried to add two with different names via useContext but unless it is called mockContext Jest doesn't recognise it.

Aucun commentaire:

Enregistrer un commentaire