Skip to content

Commit bc7d1aa

Browse files
authored
Change wording in part4b.md
Replace two instances of the phrase "create to the tests directory a file" with "add to the tests directory a file". While "create to the directory" can be understood, it is an uncommon (and potentially incorrect) wording. Instead, the phrase "add to the directory" makes more sense. Alternatively, "create in the directory" would also make sense.
1 parent baf90dc commit bc7d1aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/4/en/part4b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ When running your tests you may run across the following console warning:
181181
The problem is quite likely caused by the Mongoose version 6.x, the problem does not appear when version 5.x is used. [Mongoose documentation](https://mongoosejs.com/docs/jest.html) does not recommend testing Mongoose applications with Jest.
182182

183183
[One way](https://stackoverflow.com/questions/50687592/jest-and-mongoose-jest-has-detected-opened-handles) to get rid of this is to
184-
create to the directory <i>tests</i> a file <i>teardown.js</i> with the following content
184+
add to the directory <i>tests</i> a file <i>teardown.js</i> with the following content
185185

186186
```js
187187
module.exports = () => {
@@ -1031,7 +1031,7 @@ Notice that you will have to make similar changes to the code that were made [in
10311031
![Warning to read docs on connecting mongoose to jest](../../images/4/8a.png)
10321032
10331033
[One way](https://stackoverflow.com/questions/50687592/jest-and-mongoose-jest-has-detected-opened-handles) to get rid of this is to
1034-
create to the <i>tests</i> directory a file <i>teardown.js</i> with the following content
1034+
add to the <i>tests</i> directory a file <i>teardown.js</i> with the following content
10351035
10361036
```js
10371037
module.exports = () => {

0 commit comments

Comments
 (0)