Tools
[Mocha] Limitation at testing async function
yhcting
2019. 5. 3. 15:54
In case of promise is NOT fullfilled forever, mocha doens't give any information about this.
See test below.
describe('test', function () {
it('test', async () => {
await new Promise((r, j) => {});
console.log('hello');
});
})
This gives only following result in terminal
test
test
Waiting for the debugger to disconnect...
Killed
No more informations!