diff --git a/packages/jest-environment-mongodb/README.md b/packages/jest-environment-mongodb/README.md index 940c774..b26581c 100644 --- a/packages/jest-environment-mongodb/README.md +++ b/packages/jest-environment-mongodb/README.md @@ -108,9 +108,7 @@ jest --watch --runInBand mytests.test.js Configure the MongoDB server by passing options to `testEnvironmentOptions` of your Jest configuration file. -The available `testEnvironmentOptions` are the same as the -`mongodb-memory-server` -[options](https://www.npmjs.com/package/mongodb-memory-server#available-options). +The available `testEnvironmentOptions` are the same as for [`mongodb-memory-server`](https://www.npmjs.com/package/mongodb-memory-server)`. Example: @@ -133,12 +131,11 @@ environments. ## Globals -The `jest-environment-mongodb` environment exposes three global variables: +The `jest-environment-mongodb` environment exposes two global variables: ``` -global.MONGO_URI // The server connection URI -global.MONGO_DB_NAME // The database name -global.MONGOD // The mongod instance from `mongodb-memory-server` +global.__MONGO_URI__ // The server connection URI +global.__MONGOD__ // The mongod instance from `mongodb-memory-server` ``` ## Usage