allure-js-commons

  • Version 3.9.0
  • Published
  • 1.07 MB
  • 1 dependency
  • Apache-2.0 license

Install

npm i allure-js-commons
yarn add allure-js-commons
pnpm add allure-js-commons

Overview

Allure JS Commons

Index

Variables

Functions

Interfaces

Enums

Type Aliases

Variables

variable ALLURE_HTTP_EXCHANGE_CONTENT_TYPE

const ALLURE_HTTP_EXCHANGE_CONTENT_TYPE: string;

    variable ALLURE_HTTP_EXCHANGE_FILE_EXTENSION

    const ALLURE_HTTP_EXCHANGE_FILE_EXTENSION: string;

      variable ALLURE_HTTP_EXCHANGE_SCHEMA_VERSION

      const ALLURE_HTTP_EXCHANGE_SCHEMA_VERSION: number;

        variable ALLURE_HTTP_REDACTED_VALUE

        const ALLURE_HTTP_REDACTED_VALUE: string;

          variable StatusByPriority

          const StatusByPriority: Status[];

            Functions

            function allureId

            allureId: (value: string) => PromiseLike<void>;

              function attachment

              attachment: (
              name: string,
              content: Buffer | Uint8Array | string,
              options: ContentType | string | AttachmentOptions
              ) => PromiseLike<void>;

                function attachmentPath

                attachmentPath: (
                name: string,
                path: string,
                options: ContentType | string | Omit<AttachmentOptions, 'encoding'>
                ) => PromiseLike<void>;

                  function attachTrace

                  attachTrace: (name: string, path: string) => PromiseLike<void>;

                    function description

                    description: (markdown: string) => PromiseLike<void>;

                      function descriptionHtml

                      descriptionHtml: (html: string) => PromiseLike<void>;

                        function displayName

                        displayName: (name: string) => PromiseLike<void>;

                          function epic

                          epic: (name: string) => PromiseLike<void>;

                            function feature

                            feature: (name: string) => PromiseLike<void>;

                              function globalAttachment

                              globalAttachment: (
                              name: string,
                              content: Buffer | Uint8Array | string,
                              options: ContentType | string | AttachmentOptions
                              ) => PromiseLike<void>;

                                function globalAttachmentPath

                                globalAttachmentPath: (
                                name: string,
                                path: string,
                                options: ContentType | string | Omit<AttachmentOptions, 'encoding'>
                                ) => PromiseLike<void>;

                                  function globalError

                                  globalError: (details: StatusDetails) => PromiseLike<void>;

                                    function historyId

                                    historyId: (value: string) => PromiseLike<void>;

                                      function issue

                                      issue: (url: string, name?: string) => PromiseLike<void>;

                                        function label

                                        label: (name: LabelName | string, value: string) => PromiseLike<void>;

                                          function labels

                                          labels: (...labelsList: Label[]) => PromiseLike<void>;

                                            function layer

                                            layer: (name: string) => PromiseLike<void>;
                                              link: (
                                              url: string,
                                              name?: string,
                                              type?: LinkType | string
                                              ) => PromiseLike<void>;
                                                links: (...linksList: Link[]) => PromiseLike<void>;

                                                  function logStep

                                                  logStep: (name: string, status?: Status, error?: Error) => PromiseLike<void>;

                                                    function owner

                                                    owner: (name: string) => PromiseLike<void>;

                                                      function parameter

                                                      parameter: (
                                                      name: string,
                                                      value: string,
                                                      options?: ParameterOptions
                                                      ) => PromiseLike<void>;

                                                        function parentSuite

                                                        parentSuite: (name: string) => PromiseLike<void>;

                                                          function severity

                                                          severity: (name: string) => PromiseLike<void>;

                                                            function step

                                                            step: <T = void>(
                                                            name: string,
                                                            body: (context: StepContext) => T | PromiseLike<T>
                                                            ) => PromiseLike<T>;

                                                              function story

                                                              story: (name: string) => PromiseLike<void>;

                                                                function subSuite

                                                                subSuite: (name: string) => PromiseLike<void>;

                                                                  function suite

                                                                  suite: (name: string) => PromiseLike<void>;

                                                                    function tag

                                                                    tag: (name: string) => PromiseLike<void>;

                                                                      function tags

                                                                      tags: (...tagsList: string[]) => PromiseLike<void>;

                                                                        function testCaseId

                                                                        testCaseId: (value: string) => PromiseLike<void>;

                                                                          function tms

                                                                          tms: (url: string, name?: string) => PromiseLike<void>;

                                                                            Interfaces

                                                                            interface Attachment

                                                                            interface Attachment {}

                                                                              property name

                                                                              name: string;

                                                                                property size

                                                                                size?: number;

                                                                                  property source

                                                                                  source: string;

                                                                                    property type

                                                                                    type?: string;

                                                                                      interface AttachmentOptions

                                                                                      interface AttachmentOptions {}

                                                                                        property body

                                                                                        body?: Buffer;

                                                                                          property contentType

                                                                                          contentType: ContentType | string;

                                                                                            property encoding

                                                                                            encoding?: BufferEncoding;

                                                                                              property fileExtension

                                                                                              fileExtension?: string;

                                                                                                property path

                                                                                                path?: string;

                                                                                                  interface FixtureResult

                                                                                                  interface FixtureResult extends Executable {}

                                                                                                    interface Globals

                                                                                                    interface Globals {}

                                                                                                      property attachments

                                                                                                      attachments: GlobalAttachment[];

                                                                                                        property errors

                                                                                                        errors: GlobalError[];

                                                                                                          interface ImageDiffAttachment

                                                                                                          interface ImageDiffAttachment {}

                                                                                                            property actual

                                                                                                            actual: string | undefined;

                                                                                                              property diff

                                                                                                              diff: string | undefined;

                                                                                                                property expected

                                                                                                                expected: string | undefined;

                                                                                                                  property name

                                                                                                                  name: string;

                                                                                                                    interface Label

                                                                                                                    interface Label {}

                                                                                                                      property name

                                                                                                                      name: LabelName | string;

                                                                                                                        property value

                                                                                                                        value: string;
                                                                                                                          interface Link {}

                                                                                                                            property name

                                                                                                                            name?: string;

                                                                                                                              property type

                                                                                                                              type?: LinkType | string;

                                                                                                                                property url

                                                                                                                                url: string;

                                                                                                                                  interface Parameter

                                                                                                                                  interface Parameter {}

                                                                                                                                    property excluded

                                                                                                                                    excluded?: boolean;

                                                                                                                                      property mode

                                                                                                                                      mode?: ParameterMode;

                                                                                                                                        property name

                                                                                                                                        name: string;

                                                                                                                                          property value

                                                                                                                                          value: string;

                                                                                                                                            interface StatusDetails

                                                                                                                                            interface StatusDetails {}

                                                                                                                                              property actual

                                                                                                                                              actual?: string;

                                                                                                                                                property expected

                                                                                                                                                expected?: string;

                                                                                                                                                  property message

                                                                                                                                                  message?: string;

                                                                                                                                                    property trace

                                                                                                                                                    trace?: string;

                                                                                                                                                      interface StepContext

                                                                                                                                                      interface StepContext {}

                                                                                                                                                        property displayName

                                                                                                                                                        displayName: (name: string) => void | PromiseLike<void>;

                                                                                                                                                          property parameter

                                                                                                                                                          parameter: (
                                                                                                                                                          name: string,
                                                                                                                                                          value: string,
                                                                                                                                                          mode?: ParameterMode
                                                                                                                                                          ) => void | PromiseLike<void>;

                                                                                                                                                            interface StepResult

                                                                                                                                                            interface StepResult extends Executable {}

                                                                                                                                                              property uuid

                                                                                                                                                              uuid?: string;

                                                                                                                                                                interface TestResult

                                                                                                                                                                interface TestResult extends Executable {}

                                                                                                                                                                  property fullName

                                                                                                                                                                  fullName?: string;

                                                                                                                                                                    property historyId

                                                                                                                                                                    historyId?: string;

                                                                                                                                                                      property labels

                                                                                                                                                                      labels: Label[];
                                                                                                                                                                        links: Link[];

                                                                                                                                                                          property testCaseId

                                                                                                                                                                          testCaseId?: string;

                                                                                                                                                                            property titlePath

                                                                                                                                                                            titlePath?: string[];

                                                                                                                                                                              property uuid

                                                                                                                                                                              uuid: string;

                                                                                                                                                                                interface TestResultContainer

                                                                                                                                                                                interface TestResultContainer {}

                                                                                                                                                                                  property afters

                                                                                                                                                                                  afters: FixtureResult[];

                                                                                                                                                                                    property befores

                                                                                                                                                                                    befores: FixtureResult[];

                                                                                                                                                                                      property children

                                                                                                                                                                                      children: string[];

                                                                                                                                                                                        property name

                                                                                                                                                                                        name?: string;

                                                                                                                                                                                          property uuid

                                                                                                                                                                                          uuid: string;

                                                                                                                                                                                            Enums

                                                                                                                                                                                            enum ContentType

                                                                                                                                                                                            enum ContentType {
                                                                                                                                                                                            TEXT = 'text/plain',
                                                                                                                                                                                            XML = 'application/xml',
                                                                                                                                                                                            HTML = 'text/html',
                                                                                                                                                                                            CSV = 'text/csv',
                                                                                                                                                                                            TSV = 'text/tab-separated-values',
                                                                                                                                                                                            CSS = 'text/css',
                                                                                                                                                                                            URI = 'text/uri-list',
                                                                                                                                                                                            SVG = 'image/svg+xml',
                                                                                                                                                                                            PNG = 'image/png',
                                                                                                                                                                                            JSON = 'application/json',
                                                                                                                                                                                            ZIP = 'application/zip',
                                                                                                                                                                                            WEBM = 'video/webm',
                                                                                                                                                                                            JPEG = 'image/jpeg',
                                                                                                                                                                                            MP4 = 'video/mp4',
                                                                                                                                                                                            IMAGEDIFF = 'application/vnd.allure.image.diff',
                                                                                                                                                                                            PLAYWRIGHT_TRACE = 'application/vnd.allure.playwright-trace',
                                                                                                                                                                                            HTTP_EXCHANGE = 'application/vnd.allure.http+json',
                                                                                                                                                                                            }

                                                                                                                                                                                              member CSS

                                                                                                                                                                                              CSS = 'text/css'

                                                                                                                                                                                                member CSV

                                                                                                                                                                                                CSV = 'text/csv'

                                                                                                                                                                                                  member HTML

                                                                                                                                                                                                  HTML = 'text/html'

                                                                                                                                                                                                    member HTTP_EXCHANGE

                                                                                                                                                                                                    HTTP_EXCHANGE = 'application/vnd.allure.http+json'

                                                                                                                                                                                                      member IMAGEDIFF

                                                                                                                                                                                                      IMAGEDIFF = 'application/vnd.allure.image.diff'

                                                                                                                                                                                                        member JPEG

                                                                                                                                                                                                        JPEG = 'image/jpeg'

                                                                                                                                                                                                          member JSON

                                                                                                                                                                                                          JSON = 'application/json'

                                                                                                                                                                                                            member MP4

                                                                                                                                                                                                            MP4 = 'video/mp4'

                                                                                                                                                                                                              member PLAYWRIGHT_TRACE

                                                                                                                                                                                                              PLAYWRIGHT_TRACE = 'application/vnd.allure.playwright-trace'

                                                                                                                                                                                                                member PNG

                                                                                                                                                                                                                PNG = 'image/png'

                                                                                                                                                                                                                  member SVG

                                                                                                                                                                                                                  SVG = 'image/svg+xml'

                                                                                                                                                                                                                    member TEXT

                                                                                                                                                                                                                    TEXT = 'text/plain'

                                                                                                                                                                                                                      member TSV

                                                                                                                                                                                                                      TSV = 'text/tab-separated-values'

                                                                                                                                                                                                                        member URI

                                                                                                                                                                                                                        URI = 'text/uri-list'

                                                                                                                                                                                                                          member WEBM

                                                                                                                                                                                                                          WEBM = 'video/webm'

                                                                                                                                                                                                                            member XML

                                                                                                                                                                                                                            XML = 'application/xml'

                                                                                                                                                                                                                              member ZIP

                                                                                                                                                                                                                              ZIP = 'application/zip'

                                                                                                                                                                                                                                enum LabelName

                                                                                                                                                                                                                                enum LabelName {
                                                                                                                                                                                                                                ALLURE_ID = 'ALLURE_ID',
                                                                                                                                                                                                                                AS_ID = 'ALLURE_ID',
                                                                                                                                                                                                                                SUITE = 'suite',
                                                                                                                                                                                                                                PARENT_SUITE = 'parentSuite',
                                                                                                                                                                                                                                SUB_SUITE = 'subSuite',
                                                                                                                                                                                                                                EPIC = 'epic',
                                                                                                                                                                                                                                FEATURE = 'feature',
                                                                                                                                                                                                                                STORY = 'story',
                                                                                                                                                                                                                                SEVERITY = 'severity',
                                                                                                                                                                                                                                TAG = 'tag',
                                                                                                                                                                                                                                OWNER = 'owner',
                                                                                                                                                                                                                                LEAD = 'lead',
                                                                                                                                                                                                                                HOST = 'host',
                                                                                                                                                                                                                                THREAD = 'thread',
                                                                                                                                                                                                                                TEST_METHOD = 'testMethod',
                                                                                                                                                                                                                                TEST_CLASS = 'testClass',
                                                                                                                                                                                                                                PACKAGE = 'package',
                                                                                                                                                                                                                                FRAMEWORK = 'framework',
                                                                                                                                                                                                                                LANGUAGE = 'language',
                                                                                                                                                                                                                                LAYER = 'layer',
                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                  member ALLURE_ID

                                                                                                                                                                                                                                  ALLURE_ID = 'ALLURE_ID'

                                                                                                                                                                                                                                    member AS_ID

                                                                                                                                                                                                                                    AS_ID = 'ALLURE_ID'
                                                                                                                                                                                                                                    • Deprecated

                                                                                                                                                                                                                                      please use ALLURE_ID instead

                                                                                                                                                                                                                                    member EPIC

                                                                                                                                                                                                                                    EPIC = 'epic'

                                                                                                                                                                                                                                      member FEATURE

                                                                                                                                                                                                                                      FEATURE = 'feature'

                                                                                                                                                                                                                                        member FRAMEWORK

                                                                                                                                                                                                                                        FRAMEWORK = 'framework'

                                                                                                                                                                                                                                          member HOST

                                                                                                                                                                                                                                          HOST = 'host'

                                                                                                                                                                                                                                            member LANGUAGE

                                                                                                                                                                                                                                            LANGUAGE = 'language'

                                                                                                                                                                                                                                              member LAYER

                                                                                                                                                                                                                                              LAYER = 'layer'

                                                                                                                                                                                                                                                member LEAD

                                                                                                                                                                                                                                                LEAD = 'lead'

                                                                                                                                                                                                                                                  member OWNER

                                                                                                                                                                                                                                                  OWNER = 'owner'

                                                                                                                                                                                                                                                    member PACKAGE

                                                                                                                                                                                                                                                    PACKAGE = 'package'

                                                                                                                                                                                                                                                      member PARENT_SUITE

                                                                                                                                                                                                                                                      PARENT_SUITE = 'parentSuite'

                                                                                                                                                                                                                                                        member SEVERITY

                                                                                                                                                                                                                                                        SEVERITY = 'severity'

                                                                                                                                                                                                                                                          member STORY

                                                                                                                                                                                                                                                          STORY = 'story'

                                                                                                                                                                                                                                                            member SUB_SUITE

                                                                                                                                                                                                                                                            SUB_SUITE = 'subSuite'

                                                                                                                                                                                                                                                              member SUITE

                                                                                                                                                                                                                                                              SUITE = 'suite'

                                                                                                                                                                                                                                                                member TAG

                                                                                                                                                                                                                                                                TAG = 'tag'

                                                                                                                                                                                                                                                                  member TEST_CLASS

                                                                                                                                                                                                                                                                  TEST_CLASS = 'testClass'

                                                                                                                                                                                                                                                                    member TEST_METHOD

                                                                                                                                                                                                                                                                    TEST_METHOD = 'testMethod'

                                                                                                                                                                                                                                                                      member THREAD

                                                                                                                                                                                                                                                                      THREAD = 'thread'

                                                                                                                                                                                                                                                                        enum LinkType

                                                                                                                                                                                                                                                                        enum LinkType {
                                                                                                                                                                                                                                                                        DEFAULT = 'link',
                                                                                                                                                                                                                                                                        ISSUE = 'issue',
                                                                                                                                                                                                                                                                        TMS = 'tms',
                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                          member DEFAULT

                                                                                                                                                                                                                                                                          DEFAULT = 'link'

                                                                                                                                                                                                                                                                            member ISSUE

                                                                                                                                                                                                                                                                            ISSUE = 'issue'

                                                                                                                                                                                                                                                                              member TMS

                                                                                                                                                                                                                                                                              TMS = 'tms'

                                                                                                                                                                                                                                                                                enum Severity

                                                                                                                                                                                                                                                                                enum Severity {
                                                                                                                                                                                                                                                                                BLOCKER = 'blocker',
                                                                                                                                                                                                                                                                                CRITICAL = 'critical',
                                                                                                                                                                                                                                                                                NORMAL = 'normal',
                                                                                                                                                                                                                                                                                MINOR = 'minor',
                                                                                                                                                                                                                                                                                TRIVIAL = 'trivial',
                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                  member BLOCKER

                                                                                                                                                                                                                                                                                  BLOCKER = 'blocker'

                                                                                                                                                                                                                                                                                    member CRITICAL

                                                                                                                                                                                                                                                                                    CRITICAL = 'critical'

                                                                                                                                                                                                                                                                                      member MINOR

                                                                                                                                                                                                                                                                                      MINOR = 'minor'

                                                                                                                                                                                                                                                                                        member NORMAL

                                                                                                                                                                                                                                                                                        NORMAL = 'normal'

                                                                                                                                                                                                                                                                                          member TRIVIAL

                                                                                                                                                                                                                                                                                          TRIVIAL = 'trivial'

                                                                                                                                                                                                                                                                                            enum Stage

                                                                                                                                                                                                                                                                                            enum Stage {
                                                                                                                                                                                                                                                                                            SCHEDULED = 'scheduled',
                                                                                                                                                                                                                                                                                            RUNNING = 'running',
                                                                                                                                                                                                                                                                                            FINISHED = 'finished',
                                                                                                                                                                                                                                                                                            PENDING = 'pending',
                                                                                                                                                                                                                                                                                            INTERRUPTED = 'interrupted',
                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                              member FINISHED

                                                                                                                                                                                                                                                                                              FINISHED = 'finished'

                                                                                                                                                                                                                                                                                                member INTERRUPTED

                                                                                                                                                                                                                                                                                                INTERRUPTED = 'interrupted'

                                                                                                                                                                                                                                                                                                  member PENDING

                                                                                                                                                                                                                                                                                                  PENDING = 'pending'

                                                                                                                                                                                                                                                                                                    member RUNNING

                                                                                                                                                                                                                                                                                                    RUNNING = 'running'

                                                                                                                                                                                                                                                                                                      member SCHEDULED

                                                                                                                                                                                                                                                                                                      SCHEDULED = 'scheduled'

                                                                                                                                                                                                                                                                                                        enum Status

                                                                                                                                                                                                                                                                                                        enum Status {
                                                                                                                                                                                                                                                                                                        FAILED = 'failed',
                                                                                                                                                                                                                                                                                                        BROKEN = 'broken',
                                                                                                                                                                                                                                                                                                        PASSED = 'passed',
                                                                                                                                                                                                                                                                                                        SKIPPED = 'skipped',
                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                          member BROKEN

                                                                                                                                                                                                                                                                                                          BROKEN = 'broken'

                                                                                                                                                                                                                                                                                                            member FAILED

                                                                                                                                                                                                                                                                                                            FAILED = 'failed'

                                                                                                                                                                                                                                                                                                              member PASSED

                                                                                                                                                                                                                                                                                                              PASSED = 'passed'

                                                                                                                                                                                                                                                                                                                member SKIPPED

                                                                                                                                                                                                                                                                                                                SKIPPED = 'skipped'

                                                                                                                                                                                                                                                                                                                  Type Aliases

                                                                                                                                                                                                                                                                                                                  type HttpExchange

                                                                                                                                                                                                                                                                                                                  type HttpExchange = {
                                                                                                                                                                                                                                                                                                                  schemaVersion: typeof ALLURE_HTTP_EXCHANGE_SCHEMA_VERSION;
                                                                                                                                                                                                                                                                                                                  request: HttpExchangeRequest;
                                                                                                                                                                                                                                                                                                                  response?: HttpExchangeResponse;
                                                                                                                                                                                                                                                                                                                  error?: HttpExchangeError;
                                                                                                                                                                                                                                                                                                                  start?: number;
                                                                                                                                                                                                                                                                                                                  stop?: number;
                                                                                                                                                                                                                                                                                                                  };

                                                                                                                                                                                                                                                                                                                    type HttpExchangeBody

                                                                                                                                                                                                                                                                                                                    type HttpExchangeBody = {
                                                                                                                                                                                                                                                                                                                    contentType?: string;
                                                                                                                                                                                                                                                                                                                    encoding?: 'utf8' | 'base64';
                                                                                                                                                                                                                                                                                                                    value?: string;
                                                                                                                                                                                                                                                                                                                    size?: number;
                                                                                                                                                                                                                                                                                                                    truncated?: boolean;
                                                                                                                                                                                                                                                                                                                    form?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                    parts?: HttpExchangeBodyPart[];
                                                                                                                                                                                                                                                                                                                    stream?: HttpExchangeStream;
                                                                                                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                                                                                                      type HttpExchangeBodyPart

                                                                                                                                                                                                                                                                                                                      type HttpExchangeBodyPart = {
                                                                                                                                                                                                                                                                                                                      name?: string;
                                                                                                                                                                                                                                                                                                                      fileName?: string;
                                                                                                                                                                                                                                                                                                                      headers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                      contentType?: string;
                                                                                                                                                                                                                                                                                                                      encoding?: 'utf8' | 'base64';
                                                                                                                                                                                                                                                                                                                      value?: string;
                                                                                                                                                                                                                                                                                                                      size?: number;
                                                                                                                                                                                                                                                                                                                      truncated?: boolean;
                                                                                                                                                                                                                                                                                                                      };

                                                                                                                                                                                                                                                                                                                        type HttpExchangeCookie

                                                                                                                                                                                                                                                                                                                        type HttpExchangeCookie = HttpExchangeNameValue & {
                                                                                                                                                                                                                                                                                                                        path?: string;
                                                                                                                                                                                                                                                                                                                        domain?: string;
                                                                                                                                                                                                                                                                                                                        expires?: string;
                                                                                                                                                                                                                                                                                                                        httpOnly?: boolean;
                                                                                                                                                                                                                                                                                                                        secure?: boolean;
                                                                                                                                                                                                                                                                                                                        sameSite?: string;
                                                                                                                                                                                                                                                                                                                        };

                                                                                                                                                                                                                                                                                                                          type HttpExchangeError

                                                                                                                                                                                                                                                                                                                          type HttpExchangeError = {
                                                                                                                                                                                                                                                                                                                          name?: string;
                                                                                                                                                                                                                                                                                                                          message?: string;
                                                                                                                                                                                                                                                                                                                          stack?: string;
                                                                                                                                                                                                                                                                                                                          };

                                                                                                                                                                                                                                                                                                                            type HttpExchangeInformationalResponse

                                                                                                                                                                                                                                                                                                                            type HttpExchangeInformationalResponse = {
                                                                                                                                                                                                                                                                                                                            status?: number;
                                                                                                                                                                                                                                                                                                                            statusText?: string;
                                                                                                                                                                                                                                                                                                                            headers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                            };

                                                                                                                                                                                                                                                                                                                              type HttpExchangeNameValue

                                                                                                                                                                                                                                                                                                                              type HttpExchangeNameValue = {
                                                                                                                                                                                                                                                                                                                              name: string;
                                                                                                                                                                                                                                                                                                                              value: string;
                                                                                                                                                                                                                                                                                                                              };

                                                                                                                                                                                                                                                                                                                                type HttpExchangeRequest

                                                                                                                                                                                                                                                                                                                                type HttpExchangeRequest = {
                                                                                                                                                                                                                                                                                                                                method: string;
                                                                                                                                                                                                                                                                                                                                url: string;
                                                                                                                                                                                                                                                                                                                                httpVersion?: string;
                                                                                                                                                                                                                                                                                                                                cookies?: HttpExchangeCookie[];
                                                                                                                                                                                                                                                                                                                                headers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                                query?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                                body?: HttpExchangeBody;
                                                                                                                                                                                                                                                                                                                                trailers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                                                                                                  type HttpExchangeResponse

                                                                                                                                                                                                                                                                                                                                  type HttpExchangeResponse = {
                                                                                                                                                                                                                                                                                                                                  status?: number;
                                                                                                                                                                                                                                                                                                                                  statusText?: string;
                                                                                                                                                                                                                                                                                                                                  httpVersion?: string;
                                                                                                                                                                                                                                                                                                                                  cookies?: HttpExchangeCookie[];
                                                                                                                                                                                                                                                                                                                                  headers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                                  body?: HttpExchangeBody;
                                                                                                                                                                                                                                                                                                                                  trailers?: HttpExchangeNameValue[];
                                                                                                                                                                                                                                                                                                                                  informationalResponses?: HttpExchangeInformationalResponse[];
                                                                                                                                                                                                                                                                                                                                  };

                                                                                                                                                                                                                                                                                                                                    type HttpExchangeStream

                                                                                                                                                                                                                                                                                                                                    type HttpExchangeStream = {
                                                                                                                                                                                                                                                                                                                                    type?: string;
                                                                                                                                                                                                                                                                                                                                    complete?: boolean;
                                                                                                                                                                                                                                                                                                                                    chunkCount?: number;
                                                                                                                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                                                                                                                      type ParameterMode

                                                                                                                                                                                                                                                                                                                                      type ParameterMode = 'hidden' | 'masked' | 'default';

                                                                                                                                                                                                                                                                                                                                        type ParameterOptions

                                                                                                                                                                                                                                                                                                                                        type ParameterOptions = Pick<Parameter, 'mode' | 'excluded'>;

                                                                                                                                                                                                                                                                                                                                          type TestOrStepResult

                                                                                                                                                                                                                                                                                                                                          type TestOrStepResult = StepResult | TestResult;

                                                                                                                                                                                                                                                                                                                                            Package Files (5)

                                                                                                                                                                                                                                                                                                                                            Dependencies (1)

                                                                                                                                                                                                                                                                                                                                            Dev Dependencies (13)

                                                                                                                                                                                                                                                                                                                                            Peer Dependencies (1)

                                                                                                                                                                                                                                                                                                                                            Badge

                                                                                                                                                                                                                                                                                                                                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                                                                                                                                                                                                                                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/allure-js-commons.

                                                                                                                                                                                                                                                                                                                                            • Markdown
                                                                                                                                                                                                                                                                                                                                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/allure-js-commons)
                                                                                                                                                                                                                                                                                                                                            • HTML
                                                                                                                                                                                                                                                                                                                                              <a href="https://www.jsdocs.io/package/allure-js-commons"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>