Skip to content

🎥 Make videos programmatically with React

save test

Jonny Burgerc1d1d2ab5d49
diff --git a/packages/lambda/src/test/integration/renders/seamless-audio.png b/packages/lambda/src/test/integration/renders/seamless-audio.png
new file mode 100644
index 0000000000..6536bab7cf
Binary files /dev/null and b/packages/lambda/src/test/integration/renders/seamless-audio.png differ
diff --git a/packages/lambda/src/test/integration/renders/seamless-audio.test.ts b/packages/lambda/src/test/integration/renders/seamless-audio.test.ts
index 929c694d60..877489282a 100644
--- a/packages/lambda/src/test/integration/renders/seamless-audio.test.ts
+++ b/packages/lambda/src/test/integration/renders/seamless-audio.test.ts
@@ -42,6 +42,8 @@ test('Should make seamless audio', async () => {
const wd = new Wavedraw(wav);
+ const snapShot = path.join(__dirname, 'seamless-audio.png');
+
const options = {
width: 600,
height: 300,
@@ -55,7 +57,7 @@ test('Should make seamless audio', async () => {
rms: '#659df7',
background: '#ffffff',
},
- filename: 'example1.png',
+ filename: snapShot,
};
await wd.drawWave(options); // outputs wave drawing to example1.png