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

@@ -371,8 +371,7 @@ getJasmineRequireObj().Env = function(j$) {
runQueue,
TreeProcessor: j$.TreeProcessor,
globalErrors,
getConfig: () => config,
deprecated: this.deprecated
getConfig: () => config
});
this.setParallelLoadingState = function(state) {

View File

@@ -10,7 +10,6 @@ getJasmineRequireObj().Runner = function(j$) {
#globalErrors;
#reportDispatcher;
#getConfig;
#deprecated;
#executedBefore;
#currentRunableTracker;
@@ -24,7 +23,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();
}
@@ -77,9 +75,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();