Runs a function, once, after all the tests.
This is useful for running clean up tasks, like closing a socket or deleting temporary files.
Symbol
Runs a function, once, after all the tests.
This is useful for running clean up tasks, like closing a socket or deleting temporary files.
the function to run
let database;
afterAll(async () => {
if (database) {
await database.close();
}
});