diff --git a/app/assets/javascripts/discourse/tests/helpers/component-test.js b/app/assets/javascripts/discourse/tests/helpers/component-test.js index a7604c3e61e..4486553f4b0 100644 --- a/app/assets/javascripts/discourse/tests/helpers/component-test.js +++ b/app/assets/javascripts/discourse/tests/helpers/component-test.js @@ -47,7 +47,7 @@ export default function (name, opts) { return; } - if (typeof opts.template === "string") { + if (typeof opts.template === "string" && !LEGACY_ENV) { let testName = QUnit.config.currentModule.name + " " + name; // eslint-disable-next-line console.warn(