Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/unlight/mocha-jested

Bring some jest API to mocha
https://github.com/unlight/mocha-jested

jest mocha mocha-plugin mocha-ui

Last synced: 8 days ago
JSON representation

Bring some jest API to mocha

Awesome Lists containing this project

README

        

# mocha-jested

Bring some jest API to mocha.

## Features

- Hook `beforeAll` as `before`
- Hook `afterAll` as `after`
- `it(string)` as `it.todo(string)`
- `it.each(table)`

## Install

```sh
npm install --save-dev mocha-jested
```

## Usage

Add `--ui=mocha-jested` to your `mocha` command

```sh
mocha --ui=mocha-jested src/*.spec.ts
```

## TODO

- useFakeTimers