Skip to content

Commit 1310d6b

Browse files
committed
docs(test-runners): fix typo "an test"
1 parent f794bde commit 1310d6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/integration-examples/test-runners.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

9191
afterAll(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

110110
Start Mocha with `--timeout 60000` cause first download of MongoDB binaries may take a time.
111111

112-
```js
112+
```ts
113113
import mongoose from 'mongoose';
114114
import { MongoMemoryServer } from 'mongodb-memory-server';
115115

0 commit comments

Comments
 (0)