0
0
Fork 0

chore(deps): update dependency @testing-library/react to v16 (#30533)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
renovate[bot] 2024-06-28 13:39:32 +02:00 committed by GitHub
parent a5134f2695
commit 1bccba1408
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 17 deletions

View file

@ -2,6 +2,7 @@ import { IntlProvider } from 'react-intl';
import { MemoryRouter } from 'react-router';
import type { RenderOptions } from '@testing-library/react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { render as rtlRender } from '@testing-library/react';
@ -9,7 +10,11 @@ import { IdentityContext } from './identity_context';
function render(
ui: React.ReactElement,
{ locale = 'en', signedIn = true, ...renderOptions } = {},
{
locale = 'en',
signedIn = true,
...renderOptions
}: RenderOptions & { locale?: string; signedIn?: boolean } = {},
) {
const fakeIdentity = {
signedIn: signedIn,