🎥 Make videos programmatically with React
fix test
Jonny Burger5aff10217daf
diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.tsindex 480719d0cc..0d4b17eca6 100644--- a/packages/cli/src/get-cli-options.ts+++ b/packages/cli/src/get-cli-options.ts@@ -223,7 +223,9 @@ export const getCliOptions = async (options: {disableWebSecurity: Internals.getChromiumDisableWebSecurity(),ignoreCertificateErrors: Internals.getIgnoreCertificateErrors(),headless: Internals.getChromiumHeadlessMode(),- gl: Internals.getChromiumOpenGlRenderer(),+ gl:+ Internals.getChromiumOpenGlRenderer() ??+ Internals.DEFAULT_OPENGL_RENDERER,};return {diff --git a/packages/lambda/remotionlambda.zip b/packages/lambda/remotionlambda.zipindex 276a8ac9bd..6fae81ceb7 100644Binary files a/packages/lambda/remotionlambda.zip and b/packages/lambda/remotionlambda.zip differdiff --git a/packages/lambda/src/functions/helpers/get-current-region.ts b/packages/lambda/src/functions/helpers/get-current-region.tsindex 5120cc8584..2947c5e404 100644--- a/packages/lambda/src/functions/helpers/get-current-region.ts+++ b/packages/lambda/src/functions/helpers/get-current-region.ts@@ -1,8 +1,8 @@import {AwsRegion} from '../../pricing/aws-regions';-import {isInLambda} from '../../shared/is-in-lambda';+import {isInsideLambda} from '../../shared/is-in-lambda';export const getCurrentRegionInFunction = () => {- if (!isInLambda()) {+ if (!isInsideLambda()) {throw new Error('Should not call getCurrentRegion() if not inside a lambda function');diff --git a/tests/integration/rendering.test.ts b/tests/integration/rendering.test.tsindex 815130a893..783d773fd5 100644--- a/tests/integration/rendering.test.ts+++ b/tests/integration/rendering.test.ts@@ -239,7 +239,7 @@ test("Should be able to render a AAC audio file", async () => {expect(data).toContain("stereo");expect(data).toContain("fltp");expect(data).not.toContain("Kevin MacLeod");- expect(data).toContain("5 kb/s");+ expect(data).toMatch(/(4|5) kb\/s/);expect(data).toContain("Stream #0");expect(data).not.toContain("Stream #1");fs.unlinkSync(out);