[mocha js] async execution model?
Hi. How does mocha execute an async it() function that uses the done() callback? Does it block all other tests until done() is invoked? Does it continue running all tests in the suite? Or just all tests in a describe block?In other words, given this example -- http://mochajs.org/#asynchronous-code -- does the mocha runner block on it('should save without error') until done() is called? Or does it continue?I think it blocks but I was getting confused trying to figure it out.
Litter the example with console.logs and try playing with removing done calls.
댓글 없음:
댓글 쓰기