Comment
Comment by FooBarWidget
I'm writing a server in Node and to date I'm still trying to figure out how to control the main loop from Node. I want to write tests like this:
How do you do (3) and (4) in Node? I have no idea, and I couldn't find any clear answers on the Internet. I ended up writing my tests in RSpec which launch Node processes, and I just check whether the stuff printed to stdout matches what I expect. RSpec also happens to have a much much nicer syntax than any Javascript testing framework I've encountered.