Skip to content

Commit

Permalink
docs(bun): setup bun test runner (#570)
Browse files Browse the repository at this point in the history
Users of Bun most likely want to use the "battery included" test runner instead of separately installing Jest.

For newcomers that want to use Bun it might not be obvious that root `preload` doesn't apply for tests also and they get the error `No valid runtime type ... given` when running the tests.

Signed-off-by: Gabriel Arama <[email protected]>
  • Loading branch information
gabdara authored May 27, 2024
1 parent 5c49778 commit 2cd09a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/bun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ bun install @deepkit/type @deepkit/type-compiler @deepkit/core @deepkit/bun type
"reflection": true
}
```

## Bun test runner

To use the [bun test runner](https://bun.sh/docs/cli/test) instead of Jest add the following to file `bunfig.toml`:

```toml
[test]
preload = ["@deepkit/bun"]
```

0 comments on commit 2cd09a8

Please sign in to comment.