News for hackers. Stuff that matters.
Re:Jest – Painless JavaScript Testing by pajtai on Wednesday May 14, 2014 @01:43PM (#7745004)
Wish all it was was a mocking library... w/o the testing built in.

That way you could use it easily with Mocha (and should, etc).

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.
Re:Jest – Painless JavaScript Testing by TimJRobinson on Thursday May 15, 2014 @02:50AM (#7748121)
I use sinon (function mocking) and proxyquire (mock requires) for mocking with mocha and they work well.
Re:Jest – Painless JavaScript Testing by jestar_jokin on Wednesday May 14, 2014 @08:26PM (#7747357)
Have you looked at JsMockito?