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.
- package/README.md +3 -1
- 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
|
-
|
|
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`.
|