From 2ba281ff62c7409542fe2a1d7c49e6f358cce189 Mon Sep 17 00:00:00 2001 From: AliakseiLiasnitski Date: Mon, 18 Mar 2024 10:35:54 +0300 Subject: [PATCH] EPMRPP-89644 || Code Review fixes - 2 --- README.md | 3 ++- src/index.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82e393a..5069fb0 100644 --- a/README.md +++ b/README.md @@ -109,10 +109,11 @@ import { ReportingApi } from '@reportportal/agent-js-vitest'; The API provide methods for attaching data.
##### attachment -Send file to report portal for the current test. Should be called inside of corresponding test.
+Send file to ReportPortal for the current test. Should be called inside of corresponding test.
`ReportingApi.attachment(task: vitest.Task, data: Attachment, description?: string);`
**required**: `task`, `data`
**optional**: `description`
+where `Attachment` type is `{name: string; type: string; content: string | Buffer;}`
Example: ```javascript test('should contain logs with attachments',({ task }) => { diff --git a/src/index.ts b/src/index.ts index f78d80d..f607a2a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;