🎥 Make videos programmatically with React
Update other-bucket.test.ts
Jonny Burger341d6eef7c33
diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.tsindex 18ba73943c..f5537ac541 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -9,34 +9,38 @@ afterAll(async () => {await RenderInternals.killAllBrowsers();});-test('Should be able to render to another bucket, and silent audio should be added', async () => {- const {close, file} = await simulateLambdaRender({- codec: 'h264',- composition: 'react-svg',- crf: 9,- frameRange: [0, 12],- framesPerLambda: 8,- logLevel: 'error',- outName: {- bucketName: 'my-other-bucket',- key: 'my-key',- },- region: 'eu-central-1',- });+test(+ 'Should be able to render to another bucket, and silent audio should be added',+ async () => {+ const {close, file} = await simulateLambdaRender({+ codec: 'h264',+ composition: 'react-svg',+ crf: 9,+ frameRange: [0, 12],+ framesPerLambda: 8,+ logLevel: 'error',+ outName: {+ bucketName: 'my-other-bucket',+ key: 'my-key',+ },+ region: 'eu-central-1',+ });- const stream = await streamToUint8Array(file);+ const stream = await streamToUint8Array(file);- const probe = await $`bunx remotion ffprobe - < ${stream}`- .cwd(path.join(__dirname, '..', '..', '..', '..', '..', 'example'))- .nothrow()- .quiet();+ const probe = await $`bunx remotion ffprobe - < ${stream}`+ .cwd(path.join(__dirname, '..', '..', '..', '..', '..', 'example'))+ .nothrow()+ .quiet();- const stderr = new TextDecoder().decode(probe.stderr);+ const stderr = new TextDecoder().decode(probe.stderr);- expect(stderr).toMatch(/Stream #0:0/);- expect(stderr).toMatch(/Video: h264/);- expect(stderr).toMatch(/Stream #0:1/);- expect(stderr).toMatch(/Audio: aac/);+ expect(stderr).toMatch(/Stream #0:0/);+ expect(stderr).toMatch(/Video: h264/);+ expect(stderr).toMatch(/Stream #0:1/);+ expect(stderr).toMatch(/Audio: aac/);- await close();-});+ await close();+ },+ {timeout: 30000},+);