Skip to content

🎥 Make videos programmatically with React

fix tests

Jonny Burger396a9a179da4
diff --git a/packages/core/src/test/offthread-props.test.tsx b/packages/core/src/test/offthread-props.test.tsx
index ee43bb4f30..df6720015d 100644
--- a/packages/core/src/test/offthread-props.test.tsx
+++ b/packages/core/src/test/offthread-props.test.tsx
@@ -12,6 +12,6 @@ test('Passing imageFormat to OffthreadVideo should throw error', () => {
/>
);
}).toThrow(
- `The \`<OffthreadVideo>\` tag does no longer accept \`imageFormat\`. Use \`transparent=true\` if you want to render a transparent video.`
+ `The \`<OffthreadVideo>\` tag does no longer accept \`imageFormat\`. Use the \`transparent\` prop if you want to render a transparent video.`
);
});
diff --git a/packages/core/src/video/props.ts b/packages/core/src/video/props.ts
index 8a597112c5..ac590e4e5c 100644
--- a/packages/core/src/video/props.ts
+++ b/packages/core/src/video/props.ts
@@ -23,7 +23,7 @@ type DeprecatedOffthreadVideoProps = {
/**
* @deprecated Use the `transparent` prop instead
*/
- imageFormat: never;
+ imageFormat?: never;
};
export type OffthreadVideoProps = {