Deprecate HtmlReporter and HtmlSpecFilter

This commit is contained in:
Steve Gravrock
2025-10-09 07:02:39 -07:00
parent 0ad54fc6f0
commit 9b3cc08818
6 changed files with 50 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ jasmineRequire.HtmlReporter = function(j$) {
* @implements {Reporter}
* @param options Options object. See lib/jasmine-core/boot1.js for details.
* @since 1.2.0
* @deprecated
*/
class HtmlReporter {
#env;
@@ -44,6 +45,9 @@ jasmineRequire.HtmlReporter = function(j$) {
* @name HtmlReporter#initialize
*/
initialize() {
this.#env.deprecated(
'HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.'
);
this.#clearPrior();
this.#config = this.#env ? this.#env.configuration() : {};