Move invalid order exception throw into TreeProcessor

This commit is contained in:
Steve Gravrock
2025-08-13 18:30:51 -07:00
parent b009cd2922
commit 8e3ec25f6d
4 changed files with 22 additions and 18 deletions

View File

@@ -122,12 +122,7 @@ getJasmineRequireObj().Runner = function(j$) {
return !config.specFilter(spec);
}
});
if (!processor.processTree().valid) {
throw new Error(
'Invalid order: would cause a beforeAll or afterAll to be run multiple times'
);
}
processor.processTree();
return this.#execute2(runablesToRun, order, processor);
}