Extract tree running out into a separate class

This commit is contained in:
Steve Gravrock
2025-08-18 16:50:04 -07:00
parent a3e1abfa12
commit 63774597f0
6 changed files with 489 additions and 322 deletions

View File

@@ -765,7 +765,7 @@ getJasmineRequireObj().Env = function(j$) {
function specResultCallback(spec, result, next) {
runableResources.clearForRunable(spec.id);
runner.currentSpec = null;
runner.setCurrentSpec(null);
if (result.status === 'failed') {
runner.hasFailures = true;
@@ -775,7 +775,7 @@ getJasmineRequireObj().Env = function(j$) {
}
function specStarted(spec, suite, next) {
runner.currentSpec = spec;
runner.setCurrentSpec(spec);
runableResources.initForRunable(spec.id, suite.id);
reportDispatcher.specStarted(spec.result).then(next);
}