serveStatic
works like so:
interfake.serveStatic('/', './public/www');
// That means the folder ./public/www will be served up at the root, i.e. http://localhost:3000/
// ./public/www/index.html will be at http://localhost:3000/index.html
I admit, when I use serveStatic
I often forget which way around it is. Perhaps it should throw an exception if it seems like it has been done wrongly (e.g., missing folder or weird-looking path)
Serving to /something with directory /Users/whatever/blah
// Have to provide a path so it doesn't clash with the static serving.
var interfake = new Interfake({path: '/api'});
interfake.serveStatic('/static', './');