Skip to content

🎥 Make videos programmatically with React

start with integration tests

Jonny Burger2ec0446db0fe
diff --git a/packages/lambda/src/test/integration/handlers.test.ts b/packages/lambda/src/test/integration/handlers.test.ts
new file mode 100644
index 0000000000..36ce34756b
--- /dev/null
+++ b/packages/lambda/src/test/integration/handlers.test.ts
@@ -0,0 +1,13 @@
+import {CURRENT_VERSION, LambdaRoutines} from '../../defaults';
+import {handler} from '../../functions/index';
+
+test('Call function locally', async () => {
+ expect(
+ await handler(
+ {type: LambdaRoutines.info},
+ {
+ invokedFunctionArn: 'arn',
+ }
+ )
+ ).toEqual({version: CURRENT_VERSION});
+});