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
- Host: GitHub
- URL: https://github.com/fasttime/ebdd
- Owner: fasttime
- License: isc
- Created: 2019-09-19T10:44:47.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T22:21:08.000Z (over 1 year ago)
- Last Synced: 2024-12-24T11:55:58.181Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.txt
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