Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 68cd91230b
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (36 sloc) 0.806 kb
var utils = require('./lib/jezebel/utils');
var stats;
var context;
function reloadModule(path) {
delete require.cache[path];
context.$$ = require(path);
}
exports.settings = {
onStart: function(replSession) {
context = replSession.context;
stats = {
passes: 0,
fails: 0,
changes: 0
};
},
onPass: function() {
stats.passes += 1;
},
onFail: function() {
stats.fails += 1;
},
onChange: function(path) {
stats.changes += 1;
// Broken in Node 0.6 :-(
//if (path.match(/.*\.js$/)) {
// // load the most recently changed module into the $$ variable in the REPL
// reloadModule(path);
//}
}
};
// Run me from the REPL to see your test stats!
exports.stats = function() {
return stats;
}
exports.files = utils.projectFiles;
Jump to Line
Something went wrong with that request. Please try again.