Skip to content

Commit 979e224

Browse files
authored
Merge pull request #2827 from vlondonoma/patch-18
[EN] Minor changes part5d.md
2 parents 1ff6f38 + f4ba45e commit 979e224

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/content/5/en/part5d.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ Let's add an npm script to <i>the backend</i> which starts it in test mode, or s
7676
}
7777
```
7878

79-
NB! To get Cypress working with WSL2 one might need to do some additional configuring first. These two [links](https://docs.cypress.io/guides/getting-started/installing-cypress#Windows-Subsystem-for-Linux) are great places to [start](https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress).
80-
81-
./node_modules/.bin/cypress install -------- needed on windows.
82-
//https://github.com/cypress-io/cypress/issues/2610
79+
**NB** To get Cypress working with WSL2 one might need to do some additional configuring first. These two [links](https://docs.cypress.io/guides/getting-started/installing-cypress#Windows-Subsystem-for-Linux) are great places to [start](https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress).
8380

8481
When both the backend and frontend are running, we can start Cypress with the command
8582

@@ -407,7 +404,7 @@ As with unit and integration tests, with E2E tests it is best to empty the datab
407404

408405
The solution is to create API endpoints for the backend tests.
409406
We can empty the database using these endpoints.
410-
Let's create a new <i>router</i> for the tests
407+
Let's create a new router for the tests inside the <i>controllers</i> folder, in the <i>testing.js</i> file
411408

412409
```js
413410
const testingRouter = require('express').Router()

0 commit comments

Comments
 (0)