open-index/open-npm huggingface dataset:
npm package: @serverless/test
Description: Test utilities for serverless libraries
Author: serverless.com
Latest version: 11.1.1

# @serverless/test

## Internal test utils that aid Serverless organization libraries

Provides a reliable test suite setup, based on [Mocha](https://mochajs.org/) test framework

### Installation

```bash
npm i --save-dev mocha@9 chai chai-as-promised @serverless/test
```

### Mocha Setup

Preconfigure Mocha to rely on a custom reporter, included with this package, which applies workarounds for known Mocha issues, and exposes endpoint through which other utils may observe Mocha runner flow.

In `package.json` add `mocha` section with `reporter` option set, and recommended extensions as follows:

```json
{
  "mocha": {
    "require": [
      "@serverless/test/setup/patch",
      "@serverless/test/setup/log",
      "@serverless/test/setup/mock-homedir",
      "@serverless/test/setup/mock-cwd",
      "@serverless/test/setup/restore-env"
    ]
  }
}
```

### Setup extensions

All setup extensions are documented in [docs/setup](docs/setup) folder

### Utils

All utils are documented in [docs](docs) folder

### Binaries

All binaries are documented in [docs/bin](docs/bin) folder
npm package: @serverless/utils
Description: Serverless CLI utilities
Author: Serverless, Inc.
Latest version: 6.15.0

# @serverless/utils

## Serverless Inc. CLIs internal utilities

### Installation

```bash
npm install @serverless/utils
```

### Utilities

- [`account`](docs/account.md)
- [`analyticsAndNotificationsUrl`](docs/analytics-and-notifications-url.md)
- [`auth`](docs/auth.md)
- [`cloudformationSchema`](docs/cloudformation-schema.md)
- [`config`](docs/config.md)
- [`download`](docs/download.md)
- [`getNotificationsMode`](docs/get-notifications-mode.md)
- [`isInChina`](docs/is-in-china.md)
- [`logReporters`](docs/log-reporters.md)
- [`log`](docs/log.md)
- [`processBackendNotificationRequest`](docs/process-backend-notification-request.md)
- [`ServerlessError`](docs/serverless-error.md)
- [`telemetry`](docs/telemetry.md)
- [`consoleUi`](docs/console-ui.md)