I am using the mocha root hook plugin as this piece of code:
exports.mochaHooks = {
beforeEach(done) {
some code
done();
},
};
But now I need to await an async function inside the beforeEach block. How can I do this?
I am using the mocha root hook plugin as this piece of code:
exports.mochaHooks = {
beforeEach(done) {
some code
done();
},
};
But now I need to await an async function inside the beforeEach block. How can I do this?