News for hackers. Stuff that matters.
Re:Ask HN: What do you use to test Frontend code? by mpd on Saturday September 03, 2011 @12:21PM (#2957537)
Having dealt with the Selenium and its frustrations in the past, I tend to outsource this sort of testing if at all possible. Some things can only be truly tested with eyeballs.

One tip I do have is to disable jQ animations during your test runs so you aren't having to jump through hoops in your test suite just to wait through animations -

jQuery.fx.off = true will do that.

Re:Ask HN: What do you use to test Frontend code? by arbrandes on Saturday September 03, 2011 @02:37PM (#2957833)
This! Also, try to mock any setTimeouts and setIntervals so that they execute callbacks synchronously (i.e, timeout = 0).