I am using Chance to inject randomness into my unit tests. I use @hapi/lab as my test runner. lab
has a shuffle option, that run the tests on a randomised order. I would like to use the same seed generated by lab
to seed my Chance
instance and, then, have deterministically repeatable tests.
Is there a way to do it?
This question was also done on lab's repo.
Aucun commentaire:
Enregistrer un commentaire