When using jasmine-node (or any other JavaScript node.js testing framework come to think of it) to unit test node.js applications is it necessary to use the pattern:
//file-under-test.js
exports.some_func_of_many = function () {...};
//jasmine_node-spec.js
var functions_to_test = require("file-under-test");
.....
some jasmine tests here
i.e. does everything I need/want to test need to be exposed via the module object? It seems to me that I probably don't want to be exporting all the code in my modules...or am I missing some other pattern or something important?