vitest-environment-mongodb 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,4 +71,6 @@ test("should create a user", async () => {
71
71
 
72
72
  - `mongoUrlEnvName` (string): The name of the environment variable that will contain the MongoDB connection string. Default is `MONGO_CONNECTION_STRING`.
73
73
  - `replicaSet` (boolean): Whether to use a replica set. Default is `false`.
74
- And any other options that are supported by `mongodb-memory-server` package.
74
+ - `serverOptions` (MongoMemoryServerOpts | MongoMemoryReplSetOpts): An options object
75
+ that will passed through to the `mongodb-memory-server` package. Be sure to use the
76
+ options for the server type you are using, either `MongoMemoryReplSetOpts` when `replicaSet=true` or `MongoMemoryServerOpts` for `replicaSet=false`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-environment-mongodb",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Sets up a MongoDB memory-server environment for testing with Vitest.",
5
5
  "main": "dist/mongodb-environment.js",
6
6
  "scripts": {