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:
parent
a5134f2695
commit
1bccba1408
3 changed files with 26 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue