What javascript mocking frameworks are people using?

James Hollingworth picture James Hollingworth · Jul 13, 2011 · Viewed 16.3k times · Source

I'm using Jasmine for testing client & server side javascript and need to do some mocking. Has anyone got any suggestions for a good javascript mocking framework?

Answer

Joshua Dale picture Joshua Dale · Jul 13, 2011

I tried this once, but ended up refactoring instead so it wasn't needed. It doesn't have dependencies, so it should work just fine on node.js. http://sinonjs.org/

These are testing frameworks, but some of them include mocking frameworks internally: http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#JavaScript