Skip to content

Commit 0556ba8

Browse files
authored
revert changing localhost:3001 address
The problem trying to fix is that while initially the course material creates and uses the endpoint 'http://localhost:3001/api/testing/reset', when it refers to using baseUrl it uses as an example the route 'http://localhost:5173/api/tests/reset', which is never used in the course material. As the course first mentions to "replace all the addresses in the tests from http://localhost:3001/api/... to http://localhost:5173/api/...", it makes sense to use as an example the route 'http://localhost:5173/api/testing/reset'. For this reason, I suggest to change only /tests/ to /testing/ as this might lead to confusion.
1 parent 69bf552 commit 0556ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/5/en/part5d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ All the commands in the tests that use the application url, e.g.
952952
953953
```js
954954
await page.goto('http://localhost:5173')
955-
await page.post('http://localhost:3001/api/testing/reset')
955+
await page.post('http://localhost:5173/api/testing/reset')
956956
```
957957
958958
can be transformed into:

0 commit comments

Comments
 (0)