Skip to content

Commit

Permalink
docs: deprecate MONGO_DB_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Mar 24, 2023
1 parent 8538cec commit 11df9d0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/jest-environment-mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down

0 comments on commit 11df9d0

Please sign in to comment.