🎥 Make videos programmatically with React
move timeouts inline
Jonny Burgerda75ac79d9bd
diff --git a/packages/renderer/src/test/get-audio-channels.test.ts b/packages/renderer/src/test/get-audio-channels.test.tsindex 92c6b92051..0dd0ade651 100644--- a/packages/renderer/src/test/get-audio-channels.test.ts+++ b/packages/renderer/src/test/get-audio-channels.test.ts@@ -2,8 +2,6 @@ import {existsSync} from 'fs';import path from 'path';import {getAudioChannelsAndDuration} from '../assets/get-audio-channels';-jest.setTimeout(30000);-test('Get audio channels for video', async () => {const videoWithoutAudio = path.join(__dirname,@@ -18,7 +16,7 @@ test('Get audio channels for video', async () => {expect(existsSync(videoWithoutAudio)).toEqual(true);const channels = await getAudioChannelsAndDuration(videoWithoutAudio, null);expect(channels).toEqual({channels: 2, duration: 10});-});+}, 30000);test('Get audio channels for video without music', async () => {const videoWithAudio = path.join(@@ -34,7 +32,7 @@ test('Get audio channels for video without music', async () => {expect(existsSync(videoWithAudio)).toEqual(true);const channels = await getAudioChannelsAndDuration(videoWithAudio, null);expect(channels).toEqual({channels: 0, duration: 3.334});-});+}, 30000);test('Get audio channels for video with music', async () => {const audio = path.join(@@ -50,7 +48,7 @@ test('Get audio channels for video with music', async () => {expect(existsSync(audio)).toEqual(true);const channels = await getAudioChannelsAndDuration(audio, null);expect(channels).toEqual({channels: 2, duration: 56.529});-});+}, 30000);test('Throw error if parsing a non video file', () => {const tsFile = path.join(__dirname, '..', 'ffmpeg-flags.ts');diff --git a/packages/renderer/src/test/get-last-frame-of-corrupted-video.test.ts b/packages/renderer/src/test/get-last-frame-of-corrupted-video.test.tsindex e38e40349c..395626904f 100644--- a/packages/renderer/src/test/get-last-frame-of-corrupted-video.test.ts+++ b/packages/renderer/src/test/get-last-frame-of-corrupted-video.test.ts@@ -1,8 +1,6 @@import path from 'path';import {getLastFrameOfVideo} from '../extract-frame-from-video';-jest.setTimeout(60000);-test('Get last frame of corrupted video', async () => {await getLastFrameOfVideo({ffmpegExecutable: null,@@ -18,4 +16,4 @@ test('Get last frame of corrupted video', async () => {'corrupted.mp4'),});-});+}, 30000);