Skip to content

Commit

Permalink
EPMRPP-89644 || Code Review fixes - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AliakseiLiasnitski committed Mar 18, 2024
1 parent 395d46d commit 2ba281f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ import { ReportingApi } from '@reportportal/agent-js-vitest';
The API provide methods for attaching data.<br/>

##### attachment
Send file to report portal for the current test. Should be called inside of corresponding test.<br/>
Send file to ReportPortal for the current test. Should be called inside of corresponding test.<br/>
`ReportingApi.attachment(task: vitest.Task, data: Attachment, description?: string);`<br/>
**required**: `task`, `data`<br/>
**optional**: `description`<br/>
where `Attachment` type is `{name: string; type: string; content: string | Buffer;}`<br/>
Example:
```javascript
test('should contain logs with attachments',({ task }) => {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import { RPReporter } from './reporter';
import { ReportingApi } from './reportingApi';
import { LOG_LEVELS, STATUSES } from './constants';

export { RPReporter, ReportingApi, LOG_LEVELS, STATUSES };
export { RPReporter, ReportingApi };
export default RPReporter;

0 comments on commit 2ba281f

Please sign in to comment.