open-index/open-npm huggingface dataset:
npm package: @jest-decorated/core
Description: Decorators for writing jest-based tests
Author: Vitalii Shapovalov
Latest version: 0.1.7

# Decorators for writing jest-based tests

Wrapper around [jest](https://jestjs.io/) JavaScript testing framework.

Provides decorators with core jest globals and other utilities to minimize boilerplate code.

[Read documentation](https://vitalishapovalov.github.io/jest-decorated)

## Contributing

[Contribution guidelines for this project](https://github.com/vitalishapovalov/jest-decorated/blob/master/CONTRIBUTING.md)

## License

[MIT License](https://github.com/vitalishapovalov/jest-decorated/blob/master/LICENSE)
npm package: @jest-decorated/shared
Description: Types, interfaces and utils of jest-decorated lib.
Author: Vitalii Shapovalov
Latest version: 0.1.7

# Types, interfaces and utils for `@jest-decorated` package

## [Read Docs](https://github.com/vitalishapovalov/jest-decorated/blob/master/README.md) 

## Contributing

[Contribution guidelines for this project](https://github.com/vitalishapovalov/jest-decorated/blob/master/CONTRIBUTING.md)

## License

[MIT License](https://github.com/vitalishapovalov/jest-decorated/blob/master/LICENSE)
npm package: @jest-environment-browserstack/plugins
Description: an environment for using Browserstack with Jest
Author: taktakpeops
Latest version: 2.0.1

# @jest-environment-browserstack/plugins

Provides the abstract classes needed for implementing a plugin.

A plugin is a wrapper on top of the W3C WebDriver API used in `jest-environment-browserstack` for interacting with Browserstack.

## Usage

```bash
npm install --save @jest-environment-browserstack/plugins
```

In your plugin:

```typescript
import { WebDriver, Builder } from 'my-selenium-webdriver';
import { BrowserCapability, PluginDriver, Driver, LogTypes } from '@jest-environment-browserstack/plugins';

export class SeleniumWebDriver extends Driver<WebDriver> {
  async build(capabilities?: BrowserCapability): Promise<WebDriver> {
    // init your module
  }

  async quit(): Promise<boolean> {
    // your module teardown
  }
}

export class PluginSeleniumWebDriver extends PluginDriver<SeleniumWebDriver> {
  async createWdDriver(capabilities?: BrowserCapability, hubUrl?: string): Promise<SeleniumWebDriver> {
    // create your driver instance and return it for the test
  }
}
```

Inside the core, we use the `Reflect` API to determine which object contains the `createWdDriver` method.

## Bugs / Improvements

Feel free to report an issue in case you found a bug or something which could be improved. PR are more than welcome !
npm package: @jest-environment-browserstack/selenium-webdriver
Description: an environment for using Browserstack with Jest
Author: taktakpeops
Latest version: 2.0.1

# @jest-environment-browserstack/selenium-webdriver

This plugin wraps the NPM module [`selenium-webdriver`](https://www.npmjs.com/package/selenium-webdriver).

It gives access to this NPM module through the Browserstack environment.

## Usage

```bash
npm install --save-dev jest-environment-browserstack @jest-environment-browserstack/selenium-webdriver
```

Once you have installed both modules, assuming that you Jest configuration is in your `package.json`, add the following:

```json
{
  "jest": {
    "globals": {
      "browserstack": {
        "driver": "@jest-environment-browserstack/selenium-webdriver",
        "capabilities": {
          "browserName": "chrome",
          "browserVersion": "76.0",
          "bstack:options": {
            "os": "Windows",
            "osVersion": "10",
            "buildName": "with-bt-local",
            "local": true
          }
        },
        "localTesting": {
          "verbose": true,
          "local": true,
          "forceLocal": true
        }
      }
    }
  }
}
```
npm package: @jest-performance-reporter/core
Description: 🧐 Identify slow tests during development
Latest version: 2.1.3

# Overview

🧐 Identify slow tests during development

📚 Create json or csv report including the test execution times

```bash
yarn add -DE @jest-performance-reporter/core
```

![Example test run](https://raw.githubusercontent.com/sholzmayer/jest-performance-reporter/c766d041e908170f968a33d0c2b00cabfb111d4f/docs/test-example.png)

# Setup

Configure jest to use this reporter via the jest section in the package.json or your jest config.

```json
{
  "reporters": [
    "default",
    [
      "@jest-performance-reporter/core",
      {
        "errorAfterMs": 1000,
        "warnAfterMs": 500,
        "logLevel": "warn",
        "maxItems": 5,
        "jsonReportPath": "performance-report.json",
        "csvReportPath": "performance-report.csv"
      }
    ]
  ]
}
```

The "default"-reporter creates the default jest output. If you don't need it, of course you can remove it.
npm package: @jest-reporters/testrail
Description: Jest based reporter for creating a new run and sending test results to TestRail
Latest version: 1.0.1

[![TestRail v4.1](https://img.shields.io/badge/TestRail%20API-v2-green.svg)](http://docs.gurock.com/testrail-api2/start)

# Testrail reporter for Jest

## Description

[TestRail](https://www.gurock.com/testrail/) module for [Jest](https://jestjs.io/)

It can automatically create a new test runs on TestRail for multiple suites and send results.


## Install

```code
npm i @jest-reporters/testrail
```

## Example - **jest-config.js**

The Reporter must be specified in the Jest config file (jest-config.js), under 'reporters'.
<br>Parameter is defined as 'project_id', which is the id of your project on TestRail.

```javascript
module.exports = {
  ...
  reporters: [
    ["testrail", { project_id: "1" }]
  ]
};
```

## Example - tests

The Suite ID from TestRail must be added to the start of top _describe()_ description, ID should be in *TestRail[**ID**]*.

The Case ID from TestRail must be added to the start of each _it()_ description, ID should be in *TestRail[**ID**]*.

```javascript
// "1:" this is Suite ID from Test Rail (Will work only for top)
describe("TestRail[1] Suite", () => {
  // "11:" this is Case ID from Test Rail
  it("TestRail[11] Test success", async () => {
    expect(1).toBe(1);
  });

  it("TestRail[12] Test fail", async () => {
    expect(1).toBe(0);
  });

  xit("TestRail[13] Test skip", async () => {
    expect(1).toBe(1);
  });
});
```

**Note:** The Case ID is a unique and permanent ID of every test case (e.g. C125),
<br>and shoudn't be confused with a Test Case ID, which is assigned to a test case<br> when a new run is created (e.g. T325).

**Note**: Test run will not be added if Case ID/Suite ID is incorrect.

## ENV requirements 

Project needs 3 parameters to work correctly with testrail

```javascript
TESTRAIL_URL = https://<YourProjectURL>.testrail.io
TESTRAIL_USERNAME = email address
TESTRAIL_PASSWORD = password or API key
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
npm package: @jestaubach/eslint-config
Description: A shared eslint configuration
Latest version: 0.1.14

@jestaubach/eslint-config
===================
[@jestaubach/eslint-config](https://github.com/jestaubach/eslint-config) is a set of [shareable configs](https://eslint.org/docs/developer-guide/shareable-configs) for [ESLint](https://eslint.org/).

Motivation
------------

1. [DRY principle](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) - reuse the same eslint configurations across projects.

2. Enforce a consistent style amongst contributors to a project.

Installation
------------

[ESLint](https://eslint.org/) and the [@jestaubach/eslint-config](https://github.com/jestaubach/eslint-config) will be used in the development of other projects. Therefore, run the following [npm](https://docs.npmjs.com/about-npm/) command to install them as [devDependencies](https://docs.npmjs.com/files/package.json#devdependencies) of your project:

```bash
npm install eslint @jestaubach/eslint-config --save-dev
```

or

```bash
yarn add -D eslint @jestaubach/eslint-config
```

Configuration
-------------

Simply [add an eslintConfig key to your package.json file](https://eslint.org/docs/user-guide/configuring), like so:

```json
  "eslintConfig": {
    "extends": "@jestaubach/eslint-config"
  },
```

Extend with additonal configurations:

```json
  "eslintConfig": {
    "extends": [
      "@jestaubach/eslint-config",
      "@jestaubach/eslint-config/react"
    ]
  },
```

Override specific rules:

```json
  "eslintConfig": {
    "extends": "@jestaubach/eslint-config",
    "rules": {
      "max-len": [
        "error",
        {
          "code": 80,
        }
      ]
    }
  }
```

Related Projects
----------------

[@jestaubach/babel-config](https://github.com/jestaubach/babel-config)

[@jestaubach/babel-config-ts](https://github.com/jestaubach/babel-config-ts)

[@jestaubach/eslint-config-ts](https://github.com/jestaubach/eslint-config-ts)

[@jestaubach/prettier-config](https://github.com/jestaubach/prettier-config)

[@jestaubach/stylelint-config](https://github.com/jestaubach/stylelint-config)