Skip to content

Commit 363847c

Browse files
authored
Update part10d.md
The test file will not be detected by the JEST due to the fact that the conventional prefix "test" is missing So I suggest adding this little change if this was not intentional Kind regards
1 parent e57dd35 commit 363847c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/10/en/part10d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To use the eslint-plugin-jest plugin in ESLint, we need to include it in the plu
6565
}
6666
```
6767

68-
To see that the setup is working, create a directory <i>\_\_tests\_\_</i> in the <i>src</i> directory and in the created directory create a file <i>example.js</i>. In that file, add this simple test:
68+
To see that the setup is working, create a directory <i>\_\_tests\_\_</i> in the <i>src</i> directory and in the created directory create a file <i>example.test.js</i>. In that file, add this simple test:
6969

7070
```javascript
7171
describe('Example', () => {
@@ -75,7 +75,7 @@ describe('Example', () => {
7575
});
7676
```
7777

78-
Now, let's run our example test by running <em>npm test</em>. The command's output should indicate that the test located in the <i>src/\_\_tests\_\_/example.js</i> file is passed.
78+
Now, let's run our example test by running <em>npm test</em>. The command's output should indicate that the test located in the <i>src/\_\_tests\_\_/example.test.js</i> file is passed.
7979

8080
### Organizing tests
8181

0 commit comments

Comments
 (0)