Skip to content

🎥 Make videos programmatically with React

hmpff

Jonny Burger11a97c3d5e9e
diff --git a/tests/lambda/cli.test.ts b/tests/lambda/cli-functions.test.ts
similarity index 94%
rename from tests/lambda/cli.test.ts
rename to tests/lambda/cli-functions.test.ts
index d986fb2bb4..b16878291a 100644
--- a/tests/lambda/cli.test.ts
+++ b/tests/lambda/cli-functions.test.ts
@@ -1,4 +1,4 @@
-import { LambdaInternals } from "../../packages/lambda/src/index";
+import { LambdaInternals } from "@remotion/lambda/src";
import { getProcessWriteOutput } from "./console-hooks";
test("Deploy function", async () => {
diff --git a/tests/lambda/console-hooks.ts b/tests/lambda/console-hooks.ts
index cb9fe719e9..3f2fa1020e 100644
--- a/tests/lambda/console-hooks.ts
+++ b/tests/lambda/console-hooks.ts
@@ -11,6 +11,7 @@ export const getProcessStdErrOutput = () => {
};
const originalStdout = process.stdout.write;
+const originalConsoleLog = console.log;
const originalStderr = process.stderr.write;
beforeEach(() => {
@@ -22,6 +23,11 @@ beforeEach(() => {
// originalStdout(str);
stdoutOutput.push(str);
};
+ // @ts-expect-error
+ console.log.write = (str: string) => {
+ // originalStdout(str);
+ stdoutOutput.push(str);
+ };
// @ts-expect-error
process.stderr.write = (str: string) => {
@@ -33,4 +39,5 @@ beforeEach(() => {
afterEach(() => {
process.stdout.write = originalStdout;
process.stderr.write = originalStderr;
+ console.log = originalConsoleLog;
});