Update extending.md

This commit is contained in:
Jarred Sumner
2023-05-21 00:53:50 -07:00
parent 1888c2df22
commit b27f4ceb9c

View File

@@ -1,6 +1,6 @@
Like the runtime, `bun:test` also supports `--preload` scripts. These scripts are loaded before any tests are run. This is useful for setting up test fixtures, mocking, and configuring the test environment.
{% codetab }
{% codetabs }
```ts#preloaded.ts
import { beforeAll, beforeEach, afterEach, afterAll } from "bun:test";
@@ -22,7 +22,7 @@ afterAll(() => {
});
```
{% /codetab %}
{% /codetabs %}
Test file: