fix: 💚 Run every test file separately instead of using the global bun test command

This commit is contained in:
Jesse Wierzbinski 2024-09-23 13:20:30 +02:00
parent de8b8e2cc0
commit c7ec678a3e
No known key found for this signature in database
6 changed files with 9 additions and 10 deletions

View file

@ -83,9 +83,11 @@ If your port number is lower than 1024, you may need to run the command as root.
To run the tests, run:
```sh
bun test
bun run test
```
The `bun test` command will cause errors due to Bun bugs ([oven-sh/bun#7823](https://github.com/oven-sh/bun/issues/7823)). Use the `test` script instead.
The tests are located all around the codebase (filename `*.test.ts`) and follow a Jest-like syntax. The server should be shut down before running the tests.
## Code style