open-index/open-npm huggingface dataset:
npm package: @reportportal/reportportal-agent-jest
Description: A Jest reporter that uploads test results to ReportPortal
Author: Uladzislau Akulich, Ringo De Smet
Latest version: 1.0.7
Deprecated: The package is out of date and will no longer supported by reportportal.io. Please use https://www.npmjs.com/package/@reportportal/agent-js-jest with RP 5.0 full compatibility

# reportportal-agent-jest

A Jest reporter that uploads the results to a [ReportPortal](http://reportportal.io/) server.

## Installation

```shell
npm install --save-dev @reportportal/reportportal-agent-jest
```

## Usage
In your jest config section of `package.json`, add the following entry:
```JSON
{
    "jest": {
        ...
        "reporters": [
            "default",
            ["@reportportal/reportportal-agent-jest",
            {
                "endpoint": "https://your.reportportal.server/api/v1",
                "project": "YourReportPortalProjectName",
                "launchname": "YourLauncherName",
                "tags": ["tag1","tag2"]
            }]
        ],
        ...
    }
}
```

In case you use `jest.config.js`, you should add to it the following:

```javascript

module.exports = {
    ...
    reporters: [
        "default",
        [
            "@reportportal/reportportal-agent-jest",
            {
                "endpoint": "https://your.reportportal.server/api/v1",
                "project": "YourReportPortalProjectName",
                "launchname": "YourLauncherName",
                "tags": ["tag1","tag2"]
            }
        ]
    ]
    ...
```

It's possible by using environment variables, it's important to mention that environment variables has precedence over `package.json` definition.

```shell
$ export RP_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
$ export RP_PROJECT=MY_AWESOME_PROJECT
$ export RP_LAUNCH_NAME=MY_COOL_LAUNCHER
$ export RP_TAGS=tag1,tag2,tag3
```
This for your convenience in case you has a continuous job that run your tests and may post the results pointing to a different Report Portal definition of project, launcher name or tags.

# Copyright Notice

Licensed under the [Apache License v2.0](LICENSE)

This code is based on the [jest-junit](https://github.com/jest-community/jest-junit)
but adapted by team members of [Ontoforce](https://www.ontoforce.com) for the 
ReportPortal upload. Ontoforce contributed this effort as Open Source to the
ReportPortal project team.
npm package: @reportyy/client
Description: TypeScript/JavaScript Node.js client for Reportyy API
Author: Reportyy Limited
Latest version: 1.0.4

# reportyy-client-js

TypeScript/JavaScript Node.js client for the Reportyy API.

## Installation

With NPM
```bash
$ npm install @reportyy/client --save
```

With Yarn
```bash
$ yarn add @reportyy/client
```

## Usage

The `@reportyy/client` package provides 2 different ways to generate PDFs:

### Streaming

Streams the PDF into `PassThrough` stream. You could pipe the PDF stream directly to your express response, for example.

```typescript
import { ReportyyApiClient } from '@reportyy/client';
import express from 'express';

const app = express();
const client = new ReportyyApiClient({
  apiKey: '<<your api key>>',
});

app.get('/generate-sales-report', (req, res) => {
  const pdfStream = client.generatePdfSyncStream({
    templateId: 'clebgegxd000008mo47623vo9',
    data: {
      date: '12 Feb 2023',
      sales: '£1,000,000',
    },
  });

  res.type('application/pdf');
  pdfStream.pipe(res);
});

app.listen(3000, () => {
  console.log('🚀 Listening on port 3000');
});
```

### Buffer
Returns the PDF into a Buffer.

```typescript
import { ReportyyApiClient } from '@reportyy/client';
import express from 'express';
import fs from 'fs';

const app = express();
const client = new ReportyyApiClient({
  apiKey: '<<your api key>>',
});

app.get('/generate-sales-report', (req, res) => {
  const pdfBuffer = client.generatePdfSync({
    templateId: 'clebgegxd000008mo47623vo9',
    data: {
      date: '12 Feb 2023',
      sales: '£1,000,000',
    },
  });

  fs.writeFileSync('/tmp/sales-report.pdf', pdfBuffer);

  res.json({ status: 'ok' })
});

app.listen(3000, () => {
  console.log('🚀 Listening on port 3000');
});
```