Skip to content

Commit

Permalink
fix: correctly build link to error details
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Oct 3, 2024
1 parent da3a3bc commit be32c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/test-result/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions lib/adapters/test-result/transformers/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -21,7 +20,7 @@ export class TreeTestResultTransformer {
return {
..._.omit(result, 'imagesInfo'),
attempt: testResult.attempt,
errorDetails: extractErrorDetails(testResult)
errorDetails: testResult.errorDetails
};
}
}

0 comments on commit be32c7b

Please sign in to comment.