Hi list, I just started a new small module to load modules in a sandbox
with mocked dependencies  https://github.com/jfromaniello/mockuire (mockuire
= mock*[req]*uire)

It loads the module in a sandbox and will use the mocked dependencies that
you pass on when calling mockuire. If the "mockuired" module requires a
module that is not mocked, it will require the module normally.

every paths should work as a normal require call, relative paths should
work fine.

Since it loads the module in a sandbox, the module under test is not cached.

It solve few problems i have before when writing some unit tests, even if
prefer not mocking anything at the first place for most of my tests.

hope you find it useful, any feedback is welcome.

-- 
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

Reply via email to