diff --git a/package.json b/package.json index 6a34f2e4f..1e75b8f2d 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "lockfile": "^1.0.3", "mkdirp": "^0.5.1", "mongodb-download": "^2.2.3", + "regenerator-runtime": "^0.11.0", "tmp": "^0.0.33", "uuid": "^3.0.1" }, diff --git a/src/MongoMemoryServer.js b/src/MongoMemoryServer.js index e613cca4c..8bb9165b7 100644 --- a/src/MongoMemoryServer.js +++ b/src/MongoMemoryServer.js @@ -7,6 +7,7 @@ import getport from 'get-port'; import Debug from 'debug'; import MongoInstance from './util/MongoInstance'; +require('regenerator-runtime/runtime'); // eslint-disable-line tmp.setGracefulCleanup(); export type MongoMemoryServerOptsT = { diff --git a/src/util/MongoBinary.js b/src/util/MongoBinary.js index b640da762..9714fb1b5 100644 --- a/src/util/MongoBinary.js +++ b/src/util/MongoBinary.js @@ -7,6 +7,8 @@ import path from 'path'; import LockFile from 'lockfile'; import mkdirp from 'mkdirp'; +require('regenerator-runtime/runtime'); // eslint-disable-line + export type MongoBinaryCache = { [version: string]: string, }; diff --git a/src/util/MongoInstance.js b/src/util/MongoInstance.js index 60bf4f8b0..16010fc0b 100644 --- a/src/util/MongoInstance.js +++ b/src/util/MongoInstance.js @@ -4,9 +4,10 @@ import { ChildProcess, spawn as spawnChild } from 'child_process'; import path from 'path'; import MongoBinary from './MongoBinary'; - import type { MongoBinaryOpts } from './MongoBinary'; +require('regenerator-runtime/runtime'); // eslint-disable-line + export type MongodOps = { // instance options instance: {