test: Fixes act errors in ErrorBoundary test (#21412)

This commit is contained in:
Michael S. Molina 2022-09-09 17:59:12 -03:00 committed by GitHub
parent 14cd8a2160
commit a5e1811ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ import React from 'react';
import { render, screen } from 'spec/helpers/testing-library';
import ErrorBoundary from '.';
jest.mock('src/components/Icons/Icon', () => () => <span />);
const mockedProps = {
children: <span>Error children</span>,
onError: () => null,