mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
fix: 💚 Run every test file separately instead of using the global bun test command
This commit is contained in:
parent
de8b8e2cc0
commit
c7ec678a3e
6 changed files with 9 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue