Skip to content

Commit 7cec59a

Browse files
committed
add missing async
1 parent 4704652 commit 7cec59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/WritingTests.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ interface ExtendedRenderOptions extends Omit<RenderOptions, 'wrapper'> {
624624
store?: AppStore
625625
}
626626

627-
export function renderWithProviders(
627+
export async function renderWithProviders(
628628
ui: React.ReactElement,
629629
extendedRenderOptions: ExtendedRenderOptions = {}
630630
) {
@@ -642,7 +642,7 @@ export function renderWithProviders(
642642
// Return an object with the store, and the result of rendering
643643
return {
644644
store,
645-
...render(ui, { wrapper: Wrapper, ...renderOptions })
645+
...(await render(ui, { wrapper: Wrapper, ...renderOptions }))
646646
}
647647
}
648648
```

0 commit comments

Comments
 (0)