An open API service indexing awesome lists of open source software.

https://github.com/fasttime/ebdd

Extended BDD interface for Mocha
https://github.com/fasttime/ebdd

Last synced: 3 months ago
JSON representation

Extended BDD interface for Mocha

Awesome Lists containing this project

README

          

# EBDD · [![npm version][npm badge]][npm url]

## Installation

```console
npm install --save-dev ebdd
```

## Usage

### Command line

Run Mocha with additional parameter `--ui=ebdd`.

### Node.js

Just set `ui` to `"ebdd"` in Mocha options, e.g.
```js
const mocha = new Mocha({ ui: "ebdd" });
```

If you are using TypeScript, import the _ebbd_ module in your code to use ebdd type information.

```ts
import "ebdd";
```
or
```ts
import type { } from "ebdd";
```

### Browser

Load the script _ebbd.js_ in the _ebbd_ package, then call `mocha.setup` with option `ui` set to
`"ebdd"`, e.g.
```html

mocha.setup({ ui: "ebdd" });

mocha.run();

```

[npm badge]: https://img.shields.io/npm/v/ebdd?logo=npm
[npm url]: https://www.npmjs.com/package/ebdd