From ccd79a46e793e9100176ae3a1053cbad682bb4e7 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Mon, 18 Nov 2024 19:06:54 +0700 Subject: [PATCH] CI --- scripts/poll-in-app-server.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/poll-in-app-server.js b/scripts/poll-in-app-server.js index 52d4e68a..33129f85 100644 --- a/scripts/poll-in-app-server.js +++ b/scripts/poll-in-app-server.js @@ -11,8 +11,14 @@ async function pollInAppServer() { if (response !== null) { let parsedResponse = JSON.parse(response); + console.log('Received response:', parsedResponse); + + if (parsedResponse.results.length === 0) { + console.log('0 tests ran WTF'); + } + const allTestsPassed = parsedResponse.results.reduce((acc, r) => { - console.log(r.description); + console.log(`- ${r.description} : ${r.type}`); return acc && r.type !== 'incorrect'; }, true);