From f6c35b44ed8399741222874d8628b705e18ef411 Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 19 Jan 2024 12:54:24 -0500 Subject: [PATCH] move qunit.starTest log message to test.js --- test/helpers/test.js | 9 ++++++++- test/modules/polyfills.js | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/helpers/test.js b/test/helpers/test.js index 4041591d..f4e321d6 100644 --- a/test/helpers/test.js +++ b/test/helpers/test.js @@ -1,4 +1,4 @@ -/* global $, Util */ +/* global $, QUnit, Util */ (function () { @@ -149,6 +149,13 @@ }, }; + // Log the name of the currently running test when it starts. Uses console.log rather than + // $.console.log so that the message is printed even after the $.console is diverted (see below). + // Uncomment this code to log which test is currently running. Useful for debugging. + QUnit.testStart((details) => { + console.log(`Starting test ${details.module}.${details.name}`); + }); + /* Test console log capture diff --git a/test/modules/polyfills.js b/test/modules/polyfills.js index 7b1b8b30..8d9a04ef 100644 --- a/test/modules/polyfills.js +++ b/test/modules/polyfills.js @@ -1,9 +1,6 @@ /* global QUnit, $, testLog */ ( function() { - QUnit.testStart((details) => { - console.log(`Starting test ${details.module}.${details.name}`); - }); QUnit.module( 'Polyfills', { beforeEach: function() {