mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-09 17:41:42 +00:00
Test edition: exit with an error code if the tests fail
This commit is contained in:
@@ -70,7 +70,11 @@ exports.startup = function() {
|
|||||||
$tw.utils.evalSandboxed(code,context,title);
|
$tw.utils.evalSandboxed(code,context,title);
|
||||||
});
|
});
|
||||||
// Execute the tests
|
// Execute the tests
|
||||||
jasmineEnv.execute();
|
jasmineEnv.execute(function(passed) {
|
||||||
|
if(!passed) {
|
||||||
|
process.exit(1); // Error if tests failed
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user