Skip to content

Commit e6d4396

Browse files
committed
test(API): log full /diagnostics response body in live CI test
The previous test only logged the response keys, which is useless for actually inspecting what /diagnostics returns. Pretty-print the full JSON body so the response is visible in every live-api workflow log -- there is no other sanitized artifact to eyeball the endpoint's real-environment output.
1 parent ccd661b commit e6d4396

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/v2/live-api/wallet-health.live.spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ describe('Wallet Health - Live', function () {
8383
expect(res.status).to.equal(200);
8484

8585
const body = res.body;
86-
console.log(' /diagnostics response keys:', Object.keys(body).join(', '));
86+
// Log the full response so it's easy to inspect what /diagnostics
87+
// actually reports against this CI environment. This runs as a
88+
// preflight in 5 different live-api workflows, so the body is the
89+
// best single artifact for eyeballing the endpoint's real output.
90+
console.log(' ----- /diagnostics response -----');
91+
console.log(JSON.stringify(body, null, 2)
92+
.split('\n').map((l) => ' ' + l).join('\n'));
93+
console.log(' ----- end /diagnostics response -----');
8794

8895
// Top-level shape -----------------------------------------------------
8996
expect(body.timestamp, 'timestamp must be ISO-8601').to.match(

0 commit comments

Comments
 (0)