Skip to content

🎥 Make videos programmatically with React

maybe fix lambda tests

Jonny Burgerf104f1b83b45
diff --git a/packages/lambda/src/api/__mocks__/upload-dir.ts b/packages/lambda/src/api/__mocks__/upload-dir.ts
index 32a646ccdd..4bd84202c5 100644
--- a/packages/lambda/src/api/__mocks__/upload-dir.ts
+++ b/packages/lambda/src/api/__mocks__/upload-dir.ts
@@ -1,4 +1,3 @@
-import path from 'path';
import {MockFile, uploadDir as original} from '../upload-dir';
import {mockS3Upload} from './mock-s3';
@@ -39,7 +38,8 @@ export const uploadDir: typeof original = async (input) => {
acl: 'public-read',
bucketName: input.bucket,
content: file.content,
- key: path.join(input.folder, file.name),
+ // Should not use path.join here because on Windows it's not / separator
+ key: [input.folder, file.name].join('/'),
region: input.region,
});
}