Skip to content

🎥 Make videos programmatically with React

anothe retry

Igor Samokhovets842de7ab17fc
diff --git a/packages/web-renderer/src/test/audio.test.tsx b/packages/web-renderer/src/test/audio.test.tsx
index b3dd3f3d84..b3c8ca6816 100644
--- a/packages/web-renderer/src/test/audio.test.tsx
+++ b/packages/web-renderer/src/test/audio.test.tsx
@@ -3,28 +3,32 @@ import {staticFile} from 'remotion';
import {expect, test} from 'vitest';
import {renderMediaOnWeb} from '../render-media-on-web';
-test('should not be able to set toneFrequency on web rendering', async () => {
- const Component: React.FC = () => {
- return <Audio src={staticFile('dialogue.wav')} toneFrequency={0.5} />;
- };
+test(
+ 'should not be able to set toneFrequency on web rendering',
+ {retry: 3},
+ async () => {
+ const Component: React.FC = () => {
+ return <Audio src={staticFile('dialogue.wav')} toneFrequency={0.5} />;
+ };
- await expect(async () => {
- const result = await renderMediaOnWeb({
- composition: {
- component: Component,
- id: 'audio',
- width: 100,
- height: 100,
- fps: 30,
- durationInFrames: 1,
- calculateMetadata: null,
- },
- });
- throw new Error('Did resolve' + JSON.stringify(result));
- }).rejects.toThrow(
- 'Setting the toneFrequency is not supported yet in web rendering.',
- );
-});
+ await expect(async () => {
+ const result = await renderMediaOnWeb({
+ composition: {
+ component: Component,
+ id: 'audio',
+ width: 100,
+ height: 100,
+ fps: 30,
+ durationInFrames: 1,
+ calculateMetadata: null,
+ },
+ });
+ throw new Error('Did resolve' + JSON.stringify(result));
+ }).rejects.toThrow(
+ 'Setting the toneFrequency is not supported yet in web rendering.',
+ );
+ },
+);
test('should be able to render 2 audios', async (t) => {
if (t.task.file.projectName === 'chromium') {