Merge branch 'bonkevin-fix-custom-matcher'

* Fixes custom matchers in top-level specs
* Merges #2088 from @bonkevin
This commit is contained in:
Steve Gravrock
2025-10-29 19:42:00 -07:00
3 changed files with 36 additions and 2 deletions

View File

@@ -11514,7 +11514,10 @@ getJasmineRequireObj().TreeRunner = function(j$) {
_executeSpec(spec, specOverallDone) {
const onStart = next => {
this.#currentRunableTracker.setCurrentSpec(spec);
this.#runableResources.initForRunable(spec.id, spec.parentSuiteId);
this.#runableResources.initForRunable(
spec.id,
spec.parentSuiteId || this.#executionTree.topSuite.id
);
this.#reportDispatcher.specStarted(spec.result).then(next);
};
const resultCallback = (result, next) => {