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.
snaps-sdk
@ts-expect-error
1 parent ee1de63 commit b9a912bCopy full SHA for b9a912b
packages/snaps-sdk/src/ui/components/image.test.ts
@@ -23,10 +23,12 @@ describe('image', () => {
23
'Invalid image component: At path: value -- Value is not a valid SVG.',
24
);
25
26
+ // @ts-expect-error - Suppressing type error to test runtime handling of invalid input
27
expect(() => image({ value: MOCK_SVG, bar: 'baz' })).toThrow(
28
'Invalid image component: At path: bar -- Expected a value of type `never`, but received: `"baz"`.',
29
30
31
32
expect(() => image({})).toThrow(
33
'Invalid image component: At path: value -- Expected a string, but received: undefined.',
34
0 commit comments