mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Fix rake qunit logging (#16159)
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:
parent
3a817d2377
commit
b0702337df
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user