From 11df9d07aac10ac7f0ebfe30112f839272f096c3 Mon Sep 17 00:00:00 2001 From: Jonas Strassel Date: Fri, 24 Mar 2023 16:58:30 +0000 Subject: [PATCH] docs: deprecate MONGO_DB_NAME --- packages/jest-environment-mongodb/README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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