Skip to content

Commit

Permalink
add tip to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 25, 2023
1 parent b47b539 commit 7212d60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/Configuration.md
Expand Up @@ -1665,6 +1665,12 @@ const config: Config = {
export default config;
```

:::tip

If your setup script is a CJS module, it may export an async function. Jest will call the function and await its result. This might be useful to fetch some data asynchronously. If the file is an ESM module, simply use top-level await to achieve the same result.

:::

### `showSeed` \[boolean]

Default: `false`
Expand Down

0 comments on commit 7212d60

Please sign in to comment.