DEV: Do not include silenced Discourse deprecations in counter (#21336)

Silenced Ember deprecations were already being excluded from the test output. This applies the same logic to Discourse deprecations.
This commit is contained in:
David Taylor
2023-05-02 14:55:41 +01:00
committed by GitHub
parent b3e063bc63
commit 19540dfa0e

View File

@@ -34,7 +34,11 @@ export default class DeprecationCounter {
let { id } = options;
id ||= "discourse.(unknown)";
this.incrementDeprecation(id);
const matchingConfig = this.#configById.get(id);
if (matchingConfig !== "silence") {
this.incrementDeprecation(id);
}
}
incrementDeprecation(id) {