Skip to content

Commit 2cf77f7

Browse files
authored
docs(Readme): Add a note about babel regenerator-runtime
Closes #9
1 parent d031d18 commit 2cf77f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ yarn add mongodb-memory-server --dev
2121
OR
2222
npm install mongodb-memory-server --save-dev
2323
```
24+
For Node v6 and below required to add [regenerator-runtime](https://babeljs.io/docs/plugins/transform-regenerator/) on top of your tests or add it to the start scripts of your test framework (related discussion #9).
2425

2526
## Usage
2627

@@ -257,6 +258,10 @@ Additional examples of Jest tests:
257258
- simple example with `mongodb` in [tests in current package](https://github.com/nodkz/mongodb-memory-server/blob/master/src/__tests__/)
258259
- more complex example with `mongoose` in [graphql-compose-mongoose](https://github.com/nodkz/graphql-compose-mongoose/blob/master/src/__mocks__/mongooseCommon.js)
259260
261+
### AVA test runner
262+
For AVA written [detailed tutorial](https://github.com/zellwk/ava/blob/8b7ccba1d80258b272ae7cae6ba4967cd1c13030/docs/recipes/endpoint-testing-with-mongoose.md) how to test mongoose models by @zellwk.
263+
264+
260265
## Travis
261266
You may cache downloaded MongoDB binaries on Travis to speed up further tests:
262267
```yml

0 commit comments

Comments
 (0)