From d920532f75125d170acbc2e7c5d544d5b8fdb486 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 23 Sep 2021 07:16:24 -0400 Subject: [PATCH] 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. --- packages/react/test/errorboundary.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/test/errorboundary.test.tsx b/packages/react/test/errorboundary.test.tsx index c3cd0d06e64e..b0b8dd4c0b3f 100644 --- a/packages/react/test/errorboundary.test.tsx +++ b/packages/react/test/errorboundary.test.tsx @@ -80,6 +80,7 @@ describe('ErrorBoundary', () => { it('renders null if not given a valid `fallback` prop', () => { const { container } = render( + // @ts-ignore Passing wrong type on purpose , @@ -90,6 +91,7 @@ describe('ErrorBoundary', () => { it('renders null if not given a valid `fallback` prop function', () => { const { container } = render( + // @ts-ignore Passing wrong type on purpose 'Not a ReactElement'}> ,