DEV: Fix rake qunit logging ()

It was logging just the first passed object, which resulted printing out empty lines instead of actual messages (e.g. deprecation warnings)
This commit is contained in:
Jarek Radosz 2022-03-10 20:43:17 +01:00 committed by GitHub
parent 3a817d2377
commit b0702337df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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));
}
});