News for hackers. Stuff that matters.
Re:Jest – Painless JavaScript Testing by vjeux on Wednesday May 14, 2014 @06:51PM (#7746947)
Mock functions are a really powerful tool. They let you test asynchronous functions in an entirely synchronous way. Because of that, Jest doesn't need to provide special support for asynchronous testing

http://facebook.github.io/jest/docs/tutorial.html#content

Re:Jest – Painless JavaScript Testing by couchand on Wednesday May 14, 2014 @07:22PM (#7747093)
That might work for simple cases but I'd be worried that switching all your asynchronous calls to synchronous has the potential to introduce bugs that your tests would then miss. Testing asynchronous functions is hard for lots of reasons, and only one of them is that you have to wait for it to finish.