mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
* New tests for autobridging and freeze * Discrepancy detection tests * Don't let Mocha suppress load time errors
20 lines
499 B
JavaScript
20 lines
499 B
JavaScript
mocha = require("mocha")
|
|
// Stash a reference away to this
|
|
old_loader = mocha.prototype.loadFiles
|
|
|
|
if (!old_loader.monkey_patched) {
|
|
// Gee thanks Mocha ...
|
|
mocha.prototype.loadFiles = function() {
|
|
try {
|
|
old_loader.apply(this, arguments);
|
|
} catch (e) {
|
|
// Normally mocha just silently bails
|
|
console.error(e.stack);
|
|
// We throw, so mocha doesn't continue trying to run the test suite
|
|
throw e;
|
|
}
|
|
}
|
|
mocha.prototype.loadFiles.monkey_patched = true;
|
|
};
|
|
|