Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Nov 18, 2024
1 parent 4844bdf commit ccd79a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/poll-in-app-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ccd79a4

Please sign in to comment.