From b7412b31d1dc4d54b5edc4e3642bd1baa5d85d78 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Thu, 4 Jul 2024 23:30:11 +0000 Subject: [PATCH] Add "[mocha]" tag to the deprecation message --- lib/interfaces/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interfaces/common.js b/lib/interfaces/common.js index a1612e3eb4..ee709e16b5 100644 --- a/lib/interfaces/common.js +++ b/lib/interfaces/common.js @@ -148,7 +148,7 @@ module.exports = function (suites, context, mocha) { const suiteResult = opts.fn.call(suite); if (suiteResult instanceof Promise) { errors.deprecate( - 'Suite "' + + '[mocha] Suite "' + suite.fullTitle() + '" returned a Promise. ' + 'Asynchronous suites are not supported, use a ' +