Skip to content

🎥 Make videos programmatically with React

fix types

Jonny Burgerb3fcb239968c
diff --git a/packages/lambda/src/test/integration/renders/gif.test.ts b/packages/lambda/src/test/integration/renders/gif.test.ts
index d65ce09abe..87d7e11479 100644
--- a/packages/lambda/src/test/integration/renders/gif.test.ts
+++ b/packages/lambda/src/test/integration/renders/gif.test.ts
@@ -41,7 +41,10 @@ test('Should make a distributed GIF', async () => {
frameRange: [0, 60],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: 'out.gif',
diff --git a/packages/lambda/src/test/integration/renders/old-version.test.ts b/packages/lambda/src/test/integration/renders/old-version.test.ts
index c725bb5fac..4b0a22fc68 100644
--- a/packages/lambda/src/test/integration/renders/old-version.test.ts
+++ b/packages/lambda/src/test/integration/renders/old-version.test.ts
@@ -36,7 +36,10 @@ test('Should fail when using an incompatible version', async () => {
frameRange: [0, 12],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: null,
diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.ts
index 0128bfc22f..3725c57949 100644
--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts
+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts
@@ -39,7 +39,10 @@ test('Should be able to render to another bucket', async () => {
frameRange: [0, 12],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: {
diff --git a/packages/lambda/src/test/integration/renders/silent-audio.test.ts b/packages/lambda/src/test/integration/renders/silent-audio.test.ts
index d30b755825..6d3d363761 100644
--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts
+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts
@@ -39,7 +39,10 @@ test('Should add silent audio if there is no audio', async () => {
frameRange: [0, 12],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: 'out.mp4',
diff --git a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts
index bf6fe3ffcd..5795e18fd7 100644
--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts
+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts
@@ -42,7 +42,10 @@ test('Should make a transparent video', async () => {
frameRange: [0, 9],
framesPerLambda: 5,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: 'out.webm',
diff --git a/packages/lambda/src/test/integration/webhooks.test.ts b/packages/lambda/src/test/integration/webhooks.test.ts
index 9574d3c552..d4d324033c 100644
--- a/packages/lambda/src/test/integration/webhooks.test.ts
+++ b/packages/lambda/src/test/integration/webhooks.test.ts
@@ -75,7 +75,10 @@ describe('Webhooks', () => {
frameRange: [0, 2],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: 'out.mp4',
@@ -148,7 +151,10 @@ describe('Webhooks', () => {
frameRange: [0, 50],
framesPerLambda: 8,
imageFormat: 'png',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
logLevel: 'warn',
maxRetries: 3,
outName: 'out.mp4',
diff --git a/packages/lambda/src/test/unit/expected-out-name.test.ts b/packages/lambda/src/test/unit/expected-out-name.test.ts
index ff24e4b78e..52bebe96ec 100644
--- a/packages/lambda/src/test/unit/expected-out-name.test.ts
+++ b/packages/lambda/src/test/unit/expected-out-name.test.ts
@@ -12,7 +12,10 @@ const testRenderMetadata: RenderMetadata = {
framesPerLambda: 20,
imageFormat: 'png',
type: 'video',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
lambdaVersion: '2022-02-14',
memorySizeInMb: 2048,
outName: undefined,
diff --git a/packages/lambda/src/test/unit/price-calculation.test.ts b/packages/lambda/src/test/unit/price-calculation.test.ts
index 710e8215a6..0269b92529 100644
--- a/packages/lambda/src/test/unit/price-calculation.test.ts
+++ b/packages/lambda/src/test/unit/price-calculation.test.ts
@@ -22,7 +22,10 @@ test('Should not throw while calculating prices when time shifts occur', () => {
estimatedTotalLambdaInvokations: 10,
framesPerLambda: 10,
imageFormat: 'jpeg',
- inputProps: {},
+ inputProps: {
+ type: 'payload',
+ payload: {},
+ },
lambdaVersion: '2021-11-29',
memorySizeInMb: 1024,
region: 'eu-central-1',