Pass spec metadata to filters, not internal Spec instance

This commit is contained in:
Steve Gravrock
2025-09-14 10:44:50 -07:00
parent 7c34b43607
commit 2c6ce35ccc
4 changed files with 6 additions and 48 deletions

View File

@@ -1499,8 +1499,7 @@ getJasmineRequireObj().Env = function(j$) {
runQueue,
TreeProcessor: j$.TreeProcessor,
globalErrors,
getConfig: () => config,
deprecated: this.deprecated
getConfig: () => config
});
this.setParallelLoadingState = function(state) {
@@ -9445,7 +9444,6 @@ getJasmineRequireObj().Runner = function(j$) {
#globalErrors;
#reportDispatcher;
#getConfig;
#deprecated;
#executedBefore;
#currentRunableTracker;
@@ -9459,7 +9457,6 @@ getJasmineRequireObj().Runner = function(j$) {
this.#globalErrors = options.globalErrors;
this.#reportDispatcher = options.reportDispatcher;
this.#getConfig = options.getConfig;
this.#deprecated = options.deprecated;
this.#executedBefore = false;
this.#currentRunableTracker = new j$.CurrentRunableTracker();
}
@@ -9512,9 +9509,8 @@ getJasmineRequireObj().Runner = function(j$) {
orderChildren: function(node) {
return order.sort(node.children);
},
excludeNode: spec => {
const proxy = j$.deprecatingSpecProxy(spec, this.#deprecated);
return !config.specFilter(proxy);
excludeNode: function(spec) {
return !config.specFilter(spec.metadata);
}
});
this.#executionTree = treeProcessor.processTree();