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() {