# mocha-runnable-generators

> Makes mocha runables take geneartors, so you can do it( function *() )

Latest version **1.0.2** (published 2015-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install mocha-runnable-generators
pnpm add mocha-runnable-generators
yarn add mocha-runnable-generators
bun add mocha-runnable-generators
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-04-28 |
| First published | 2015-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mike Lyons |
| Maintainers | frenchie4111 |
| Keywords | Mocha, runnable, generators, harmony, es6, javascript-next, next |

## Links

- npm: https://www.npmjs.com/package/mocha-runnable-generators
- Repository: https://github.com/frenchie4111/mocha-runnable-generators
- Issues: https://github.com/frenchie4111/mocha-runnable-generators/issues
- npm.io page: https://npm.io/package/mocha-runnable-generators

## Dependencies (3)

- [q](https://npm.io/package/q.md) ^1.3.0
- [chai](https://npm.io/package/chai.md) ^2.3.0
- [is-generator](https://npm.io/package/is-generator.md) ^1.0.0

## Recent versions

- 1.0.2 (latest) — 2015-04-28
- 1.0.1 — 2015-04-28
- 1.0.0 — 2015-04-28

## README

# mocha-runnable-generators
Makes mocha runables take geneartors, so you can do it( function *() )

## Usage

File tree:

- tests/
  - index.js
  - tests.js

index.js

```javascript
require( 'mocha-runnable-generators' );
```

tests.js

```javascript
var q = require( 'q' );

it( 'should wait', function *() {
  yield q.Promise( function( resolve ) { // NOTE: This doens't test anything, just an example promise
    setTimeout( resolve, 100 );
  } );
} );
```

Command:

```
node --harmony ./node_modules/.bin/_mocha tests/
```

---
_Source: https://npm.io/package/mocha-runnable-generators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
