Pass spec metadata to filters, not internal Spec instance
This commit is contained in:
@@ -371,8 +371,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
runQueue,
|
||||
TreeProcessor: j$.TreeProcessor,
|
||||
globalErrors,
|
||||
getConfig: () => config,
|
||||
deprecated: this.deprecated
|
||||
getConfig: () => config
|
||||
});
|
||||
|
||||
this.setParallelLoadingState = function(state) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user