Update README.md: Deno tests

merge-requests/23/head
Michał "rysiek" Woźniak 2023-09-26 23:19:08 +00:00
rodzic 23f594cd48
commit 60dfb907cb
1 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -41,16 +41,17 @@ In both cases you will end up with a very basic webserver running locally on por
### Running the test suite
Tests are written in [Jest](https://jestjs.io/). You can run them using this command in the project directory:
Tests are written in [Deno](https://docs.deno.com/runtime/manual/basics/testing/). You can run them using this command in the project directory:
```bash
npx jest ./__tests__/
deno test --allow-read --importmap=./__tests__/importmap.json
```
If you don't have NodeJS on your machine, you can run them by using Docker (also in the project directory):
If you don't have Deno on your machine, you can run them by using Docker (also in the project directory):
```bash
docker run -ti --rm --volume "${PWD}:/code" node:17.0 /bin/bash -c 'cd /code && npx jest ./__tests__/'
docker run -ti --rm --volume "${PWD}:/code" denoland/deno:1.37.0 \
/bin/bash -c 'cd /code && deno test --allow-read --importmap=./__tests__/importmap.json'
```
## Related developments