I'd like to covershot several directories. From reading the covershot docs, I suppose I should do:
var covershot = require('covershot');
// replace all paths containing a 'routes' component with 'routes-cov'
covershot.replace('routes', 'routes-cov');
covershot.replace('services', 'services-cov');
covershot.replace('email', 'email-cov');
var csrequire = covershot.require.bind(null, require);
var myLibrary = csrequire('../lib/myLibrary');
But when I do this, csrequire doesn't appear to actually be replacing these, and so Node reports errors about failing to find files.
I'd like to covershot several directories. From reading the covershot docs, I suppose I should do:
But when I do this, csrequire doesn't appear to actually be replacing these, and so Node reports errors about failing to find files.