From 5e233102fe593531704159c7b501135195ab3571 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sun, 15 Mar 2026 13:24:40 +0100 Subject: [PATCH] Rebuild the `dist/index.js` file --- dist/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index a3e0fca..db73e30 100644 --- a/dist/index.js +++ b/dist/index.js @@ -57248,17 +57248,18 @@ class JestJunitParser { }); } getTestCaseResult(test) { - if (test.failure) + if (test.failure || test.error) return 'failed'; if (test.skipped) return 'skipped'; return 'success'; } getTestCaseError(tc) { - if (!this.options.parseErrors || !tc.failure) { + if (!this.options.parseErrors || !(tc.failure || tc.error)) { return undefined; } - const details = typeof tc.failure[0] === 'string' ? tc.failure[0] : tc.failure[0]['_']; + const message = tc.failure ? tc.failure[0] : tc.error ? tc.error[0] : 'unknown failure'; + const details = typeof message === 'string' ? message : message['_']; let path; let line; const src = getExceptionSource(details, this.options.trackedFiles, file => this.getRelativePath(file));