Skip to content

Commit

Permalink
fixup! fixup! ✅(frontend) make tests work with react-query v4 and rea…
Browse files Browse the repository at this point in the history
…ct 18
  • Loading branch information
NathanVss committed Nov 14, 2022
1 parent 62dba0c commit 165d6e2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,8 @@ describe('<DahsboardEditCreditCard/>', () => {
body: 'Internal error',
});

let container: HTMLElement | undefined;
await act(async () => {
container = render(
render(
<QueryClientProvider client={createTestQueryClient({ user: true })}>
<IntlProvider locale="en">
<SessionProvider>
Expand All @@ -331,7 +330,7 @@ describe('<DahsboardEditCreditCard/>', () => {
</SessionProvider>
</IntlProvider>
</QueryClientProvider>,
).container;
);
});

const button = await screen.findByRole('button', { name: 'Save updates' });
Expand Down

0 comments on commit 165d6e2

Please sign in to comment.