mercredi 23 août 2017

Is there any way to run a setup script for jest testing?

I am looking to run a script that defines constants and functions that is reused many times in my jest tests, is there any way to do that? Such as a setup.spec.js that always runs or define a parameter in the command line such as npm jest -setup etc?

Aucun commentaire:

Enregistrer un commentaire