In the code below, afterEach() is called before the promises in the tests have been resolved and done() is called. I want it to run after the tests have been completed with done(). What is the right way to do that?
describe ("Some test", ()=>{
    afterEach(()=>{
        console.log("Done")
    })
    it("Does something", done=>{
        new Promise (resolve=>{
            let result = doSomething();
            assert.isOK(result);
            done();
        })
    })
})
 
    