🎥 Make videos programmatically with React
Update deploy-site.test.ts
Jonny Burger84a67211484b
diff --git a/packages/lambda/src/test/integration/deploy-site.test.ts b/packages/lambda/src/test/integration/deploy-site.test.tsindex 8371a02eb2..f0a206c4e5 100644--- a/packages/lambda/src/test/integration/deploy-site.test.ts+++ b/packages/lambda/src/test/integration/deploy-site.test.ts@@ -137,7 +137,7 @@ test('Should keep the previous site if deploying the new one with different ID',const files = await lambdaLs({bucketName,expectedBucketOwner: null,- prefix: 'sites/testing/',+ prefix: 'sites/',region: 'ap-northeast-1',continuationToken: undefined,});@@ -145,25 +145,12 @@ test('Should keep the previous site if deploying the new one with different ID',files.map((f) => {return f.Key;})- ).toEqual(- getDirFiles('/path/to/bundle-1').map((f) => {+ ).toEqual([+ ...getDirFiles('/path/to/bundle-1').map((f) => {return 'sites/testing/' + f.name;- })- );- const files2 = await lambdaLs({- bucketName,- expectedBucketOwner: null,- prefix: 'sites/testing-2/',- region: 'ap-northeast-1',- continuationToken: undefined,- });- expect(- files2.map((f) => {- return f.Key;- })- ).toEqual(- getDirFiles('/path/to/bundle-2').map((f) => {+ }),+ ...getDirFiles('/path/to/bundle-2').map((f) => {return 'sites/testing-2/' + f.name;- })- );+ }),+ ]);});