Variable export=

export=: {
    add: ((id: string, artifactPath: string) => Promise<void>);
    getStream: ((id: string, artifactPath: string) => Promise<WriteStream>);
}

Type declaration

  • add: ((id: string, artifactPath: string) => Promise<void>)

    Archive a file to be later sent to the client as an artifact.

      • (id, artifactPath): Promise<void>
      • Parameters

        • id: string

          The name of the directory in which logs will be archived. Usuallly this value is the name of the test suite (Available in the test using this.id)

        • artifactPath: string

          The absolute path of the file needed to be archived.

        Returns Promise<void>

  • getStream: ((id: string, artifactPath: string) => Promise<WriteStream>)

    Archive the file as a stream to be later sent to the client as an artifact.

      • (id, artifactPath): Promise<WriteStream>
      • Parameters

        • id: string

          The name of the directory in which logs will be archived. Usuallly this value is the name of the test suite (Available in the test using this.id)

        • artifactPath: string

          The absolute path of the file needed to be archived.

        Returns Promise<WriteStream>

        stream of the file