Skip to content

🎥 Make videos programmatically with React

Update shape effects mocks for premounting

Jonny Burgerf248ce6def29
diff --git a/packages/shapes/src/test/effects.test.tsx b/packages/shapes/src/test/effects.test.tsx
index 9261eb3851..aa237327a5 100644
--- a/packages/shapes/src/test/effects.test.tsx
+++ b/packages/shapes/src/test/effects.test.tsx
@@ -36,6 +36,7 @@ let hasVideoConfig = true;
mock.module('remotion', () => {
return {
+ Freeze: ({children}: {readonly children: React.ReactNode}) => children,
HtmlInCanvas: ({
children,
width,
@@ -94,6 +95,19 @@ mock.module('remotion', () => {
showInTimeline: {},
},
transformSchema: {},
+ usePremounting: ({
+ style,
+ }: {
+ readonly style: React.CSSProperties | null;
+ }) => ({
+ effectivePremountFor: 0,
+ effectivePostmountFor: 0,
+ freezeFrame: 0,
+ isPremountingOrPostmounting: false,
+ premountingActive: false,
+ postmountingActive: false,
+ premountingStyle: style,
+ }),
useUnsafeVideoConfig: mock(() =>
hasVideoConfig
? {