mercredi 27 novembre 2019

How to run a setup file only once in Jest?

When testing with Jest I need to setup the entire test suite, however the setup file executes for every test files, as defined in the configuration. Is it possible to have a setup file being executed only once?

Aucun commentaire:

Enregistrer un commentaire