News for hackers. Stuff that matters.
Re:Jest – Painless JavaScript Testing by jeffmo on Wednesday May 14, 2014 @01:49PM (#7745042)
(Hi, I'm the fb eng who wrote Jest)

Yea, I'd really like to add support for other testing frameworks as well.

Right now we use jasmine internally, so I was pretty focused on getting it running with that. However, it is (quite intentionally) built such that the 'jasmine' parts are pretty isolated similar to a plug-in; So it should be possible to build plug-ins for other frameworks as well (like Mocha, QUnit, etc) in the future.

Re:Jest – Painless JavaScript Testing by chadhietala on Wednesday May 14, 2014 @04:42PM (#7746291)
You might want to look at http://www.venusjs.org/ to get some ideas for supporting multiple testing frameworks. It uses an annotation approach kind of how you include files for tests. The automatic mocking is pretty awesome though.
Re:Jest – Painless JavaScript Testing by glenjamin on Wednesday May 14, 2014 @02:31PM (#7745340)
This looks really neat, having to re-specify the interface of the collaborators is generally a bunch of boilerplate you don't want to need!

Did you consider building on top of Sinon.JS and only having jest do the require/detect/build-mock part? Your mock API seems very similar.

Re:Jest – Painless JavaScript Testing by jeffmo on Wednesday May 14, 2014 @04:19PM (#7746112)
I hadn't looked at Sinon.JS before, but it does seem worth checking into...thanks!
Re:Jest – Painless JavaScript Testing by skeeterbug on Wednesday May 14, 2014 @04:41PM (#7746284)
Any plans to support AMD or just commonjs?
Re:Jest – Painless JavaScript Testing by chadhietala on Wednesday May 14, 2014 @04:47PM (#7746314)
Re:Jest – Painless JavaScript Testing by waterfowl on Wednesday May 14, 2014 @03:09PM (#7745623)
this is awesome. thank you for your work.