diff --git a/src/schema.ts b/src/schema.ts index 4c1390a..61fd989 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -158,7 +158,7 @@ export const requestSchema = z.object({ result: z.object({ summary: z.union([z.string(), z.null()]), overall: z.string(), - xunit: z.string(), + xunit: z.string().nullable(), }), run: z.object({ console: z.union([urlSchema, z.null()]), diff --git a/test/integration/request-details.test.ts b/test/integration/request-details.test.ts index d535f25..fff9adb 100644 --- a/test/integration/request-details.test.ts +++ b/test/integration/request-details.test.ts @@ -48,7 +48,7 @@ describe('Test Testing Farm GET /requests/{request_id}', () => { "result": { "overall": "failed", "summary": null, - "xunit": "", + "xunit": null, }, "run": { "artifacts": "https://artifacts.dev.testing-farm.io/f053796b-452e-4da2-b4e1-26eb2f3e721f",