In my test I have async function call
describe('a', () => {
after(() => {
console.log('after call');
});
it('a', () => {
myAsyncFunction().then(() => {
console.log('async call');
});
});
});
Looking at console, first is after call and then async call.
How make after be called really after all async calls finish?