I'm trying to write some tests for server side objects (model objects
currently, though more will come). However, I'd like to use Mocha
instead of NodeUnit. Is there any information about how to set up a
test environment so I can do this? I looked through the generated
test_helper.js file for some ideas, but it's hard to figure out what's
relevant and what isn't.
As an example issue i'm hitting, I'm using custom schemas with
Mongoose (non-juggling). I can't create models in my tests because the
"customSchema" function that schema.js calls isn't available.
Presumably there's some bootstrap code that needs to be run first, but
it's not clear to me what that is or how to run it.