I want to use jest for my server unit testing (instead of mocha+chai). Is there a way I can run async function before all tests start (init purposes) only once and not for every
This feature was added in Jest's 22 version, with globalSetup and globalTeardown configurations. Look at this for examples.
globalSetup
globalTeardown