According to this https://mochajs.org/#using-async-await when using await to test async function, there is no need to call done()
. But with my code below it is complaining
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
I don’t want to use the hack to increase timeout.
describe('test', function () {
it('upload all', async () => {
const c = await setup();
const files = await Test(c);
expect(files.length).to.equal(3);
})
})
Any help is much appreciated