diff --git a/test/run-qunit.js b/test/run-qunit.js index de5bd7f8aff..94d53054d6d 100644 --- a/test/run-qunit.js +++ b/test/run-qunit.js @@ -109,16 +109,12 @@ async function runAllTests() { const message = response["args"][0].value; // Not finished yet, don't add a newline - if (message && message.startsWith && message.startsWith("↪")) { + if (message?.startsWith?.("↪")) { process.stdout.write(message); - } else if ( - message && - message.startsWith && - message.startsWith("AUTOSPEC:") - ) { + } else if (message?.startsWith?.("AUTOSPEC:")) { fs.appendFileSync(QUNIT_RESULT, `${message.slice(10)}\n`); } else { - console.log(message); + console.log(...response["args"].map((m) => m.value)); } });