Skip to content

🎥 Make videos programmatically with React

Update stream-remote.test.ts

JonnyBurgerb8401b52c2cc
diff --git a/packages/media-parser/src/test/stream-remote.test.ts b/packages/media-parser/src/test/stream-remote.test.ts
index 78af4c27a0..13bcdb5580 100644
--- a/packages/media-parser/src/test/stream-remote.test.ts
+++ b/packages/media-parser/src/test/stream-remote.test.ts
@@ -1,25 +1,29 @@
import {expect, test} from 'bun:test';
import {parseMedia} from '../parse-media';
-test('Should stream', async () => {
- const result = await parseMedia({
- src: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_1MB.mp4',
- fields: {
- durationInSeconds: true,
- fps: true,
- dimensions: true,
- videoCodec: true,
- },
- acknowledgeRemotionLicense: true,
- });
- expect(result.durationInSeconds).toBe(10);
- expect(result.fps).toBe(60);
- expect(result.dimensions).toEqual({
- width: 1920,
- height: 1080,
- });
- expect(result.videoCodec).toEqual('h264');
-});
+test(
+ 'Should stream',
+ async () => {
+ const result = await parseMedia({
+ src: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_1MB.mp4',
+ fields: {
+ durationInSeconds: true,
+ fps: true,
+ dimensions: true,
+ videoCodec: true,
+ },
+ acknowledgeRemotionLicense: true,
+ });
+ expect(result.durationInSeconds).toBe(10);
+ expect(result.fps).toBe(60);
+ expect(result.dimensions).toEqual({
+ width: 1920,
+ height: 1080,
+ });
+ expect(result.videoCodec).toEqual('h264');
+ },
+ {timeout: 15000},
+);
test(
'Should stream from Wikipedia',