Skip to content

Commit d920532

Browse files
authored
chore(react): Add ts-ignore for fallback tests (#4004)
Some tests are testing behaviour when we pass the wrong type on purpose. We should make sure we ts-ignore in those cases.
1 parent 27f8609 commit d920532

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react/test/errorboundary.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ describe('ErrorBoundary', () => {
8080

8181
it('renders null if not given a valid `fallback` prop', () => {
8282
const { container } = render(
83+
// @ts-ignore Passing wrong type on purpose
8384
<ErrorBoundary fallback="Not a ReactElement">
8485
<Bam />
8586
</ErrorBoundary>,
@@ -90,6 +91,7 @@ describe('ErrorBoundary', () => {
9091

9192
it('renders null if not given a valid `fallback` prop function', () => {
9293
const { container } = render(
94+
// @ts-ignore Passing wrong type on purpose
9395
<ErrorBoundary fallback={() => 'Not a ReactElement'}>
9496
<Bam />
9597
</ErrorBoundary>,

0 commit comments

Comments
 (0)