diff --git a/packages/snaps-sdk/src/ui/components/image.test.ts b/packages/snaps-sdk/src/ui/components/image.test.ts index c5f2a05287..76619ec467 100644 --- a/packages/snaps-sdk/src/ui/components/image.test.ts +++ b/packages/snaps-sdk/src/ui/components/image.test.ts @@ -23,10 +23,12 @@ describe('image', () => { 'Invalid image component: At path: value -- Value is not a valid SVG.', ); + // @ts-expect-error - Suppressing type error to test runtime handling of invalid input expect(() => image({ value: MOCK_SVG, bar: 'baz' })).toThrow( 'Invalid image component: At path: bar -- Expected a value of type `never`, but received: `"baz"`.', ); + // @ts-expect-error - Suppressing type error to test runtime handling of invalid input expect(() => image({})).toThrow( 'Invalid image component: At path: value -- Expected a string, but received: undefined.', );