From bd679103695be06393d2d1a1e032ee5a261aa028 Mon Sep 17 00:00:00 2001 From: Ryan May <112563297+ryma2fhir@users.noreply.github.com> Date: Tue, 2 Sep 2025 10:27:59 +0100 Subject: [PATCH] update to find what causign validator error when getting capbaility statement --- src/common.js.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common.js.ts b/src/common.js.ts index ee8cff4..f0be86b 100644 --- a/src/common.js.ts +++ b/src/common.js.ts @@ -890,7 +890,10 @@ export function testFile( folderName: string, fileName: string, failOnWarning :b const response = await client.post('/$validate', resource).catch(function (error) { return error.response }) - expect(response.status === 200 || response.status === 400).toBeTruthy() + if (!response) { + console.error("FHIR call did not return a response object"); + } + expect(response && (response.status === 200 || response.status === 400)).toBeTruthy(); //we can ignore warnings on retired resources - these would not be in a balloted package if (json.status == 'retired') {