File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/guides/integration-examples Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export = async function globalSetup() {
5656 process .env .MONGO_URI = ` mongodb://${config .IP }:${config .Port } ` ;
5757 }
5858
59- // The following is to make sure the database is clean before an test starts
59+ // The following is to make sure the database is clean before a test suite starts
6060 const conn = await mongoose .connect (` ${process .env .MONGO_URI }/${config .Database } ` );
6161 await conn .connection .db .dropDatabase ();
6262 await mongoose .disconnect ();
@@ -89,7 +89,7 @@ beforeAll(async () => {
8989});
9090
9191afterAll (async () => {
92- // put your client disconnection code here, example with mongodb :
92+ // put your client disconnection code here, example with mongoose :
9393 await mongoose .disconnect ();
9494});
9595```
@@ -109,7 +109,7 @@ Keep in mind that jest's global-setup and global-teardown do **not** share a env
109109
110110Start Mocha with ` --timeout 60000 ` cause first download of MongoDB binaries may take a time.
111111
112- ``` js
112+ ``` ts
113113import mongoose from ' mongoose' ;
114114import { MongoMemoryServer } from ' mongodb-memory-server' ;
115115
You can’t perform that action at this time.
0 commit comments