Is it possible to do some tasks only once before all test suites and do the clean up once after all the test suites have completed?
The scenario is I want to create a user before any of the test suites are executed and once all the test suites complete executing then I want to clear all the trace of that user. How can I achieve that using jest and puppeteer?
I tried globalSetup globalTeardown and setupTestFrameworkScriptFile but they all run once before each test suites.
Aucun commentaire:
Enregistrer un commentaire