I'm new to Node.js and in general new to testing frameworks / methods in Javascript. So far I'm thinking of giving vows a try.
Specifically, I'd like to be able to stub / mock my data sources. I'm considering two situations:
- Stub out the whole module
- Stub out just a single function when for whatever reason stubbing the whole module doesn't work.
Any suggestions or examples for the approach you found cleanest and simplest to use?