From be32c7bbeaf5c9354bd3d9e57d2160fdfdfa8dcf Mon Sep 17 00:00:00 2001 From: DudaGod Date: Thu, 3 Oct 2024 14:39:00 +0300 Subject: [PATCH] fix: correctly build link to error details --- lib/adapters/test-result/reporter.ts | 2 +- lib/adapters/test-result/transformers/tree.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/adapters/test-result/reporter.ts b/lib/adapters/test-result/reporter.ts index 63bec7cbd..5b59e0b09 100644 --- a/lib/adapters/test-result/reporter.ts +++ b/lib/adapters/test-result/reporter.ts @@ -15,7 +15,7 @@ export class ReporterTestAdapter implements ReporterTestResult { constructor(testResult: ReporterTestResult) { this._testResult = testResult; - this._errorDetails = null; + this._errorDetails = this._testResult.errorDetails || null; } get attempt(): number { diff --git a/lib/adapters/test-result/transformers/tree.ts b/lib/adapters/test-result/transformers/tree.ts index e54f001d2..abb0d980c 100644 --- a/lib/adapters/test-result/transformers/tree.ts +++ b/lib/adapters/test-result/transformers/tree.ts @@ -2,7 +2,6 @@ import {ReporterTestResult} from '../index'; import _ from 'lodash'; import {BaseTreeTestResult} from '../../../tests-tree-builder/base'; import {DbTestResultTransformer} from './db'; -import {extractErrorDetails} from '../utils'; interface Options { baseHost?: string; @@ -21,7 +20,7 @@ export class TreeTestResultTransformer { return { ..._.omit(result, 'imagesInfo'), attempt: testResult.attempt, - errorDetails: extractErrorDetails(testResult) + errorDetails: testResult.errorDetails }; } }