vendredi 17 novembre 2017

How to implement shared test cases using Jest?

I have few classes that have common interface. I would want to write a Jest test suite once and apply it to all the classes. Ideally it should not be mixed up in one test module, instead I expect this suite to be imported to each individual test module for each class.

Could someone please point me out to a project where something like this is done or provide an example? Thanks.

Aucun commentaire:

Enregistrer un commentaire