I started this little thing to load a module in a sandbox where i can swap the result of a require(xxxx) call:
https://github.com/jfromaniello/mockuire it load the module in a sandbox and only the code, so it is not cached and i dont need to clean up anything. I didnt need sinon in node.js, but i use it when testing client side code to mock ajax calls. 2012/7/3 Evgeny Bogdanov <[email protected]> > Question to sinon users: can it mock the required modules like gently does? > https://github.com/felixge/node-gently#gentlyhijackrealrequire > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
