From f68fa2e0d9d2725aa7cca81ae7f6e18da9ba37ea Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Fri, 13 Sep 2024 14:18:47 +0200 Subject: [PATCH] lint(react-conformance): mitigate deprecation warning exposed by latest jest types --- .../react-conformance/src/utils/getCallbackArguments.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-conformance/src/utils/getCallbackArguments.test.ts b/packages/react-conformance/src/utils/getCallbackArguments.test.ts index 5ed02b703053c..12f842910dd1d 100644 --- a/packages/react-conformance/src/utils/getCallbackArguments.test.ts +++ b/packages/react-conformance/src/utils/getCallbackArguments.test.ts @@ -251,7 +251,7 @@ describe('getCallbackArguments', () => { './Accordion.types.ts': 'export interface AccordionProps { onToggle: (e: null) => void; }', }); - expect(() => getCallbackArguments(program, 'Button.types.ts', 'AccordionProps', 'onToggle')).toThrowError( + expect(() => getCallbackArguments(program, 'Button.types.ts', 'AccordionProps', 'onToggle')).toThrow( [ 'A file (Button.types.ts) was not found in TS program, this looks like an invocation problem,', 'check your params',