We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f8609 commit d920532Copy full SHA for d920532
packages/react/test/errorboundary.test.tsx
@@ -80,6 +80,7 @@ describe('ErrorBoundary', () => {
80
81
it('renders null if not given a valid `fallback` prop', () => {
82
const { container } = render(
83
+ // @ts-ignore Passing wrong type on purpose
84
<ErrorBoundary fallback="Not a ReactElement">
85
<Bam />
86
</ErrorBoundary>,
@@ -90,6 +91,7 @@ describe('ErrorBoundary', () => {
90
91
92
it('renders null if not given a valid `fallback` prop function', () => {
93
94
95
<ErrorBoundary fallback={() => 'Not a ReactElement'}>
96
97
0 commit comments