refactor(media): dedupe runner proxy and video test fixtures

This commit is contained in:
Peter Steinberger
2026-03-02 21:44:44 +00:00
parent faa4ffec03
commit f2b37f0aa9
3 changed files with 74 additions and 128 deletions

View File

@@ -54,3 +54,18 @@ export async function withAudioFixture(
run,
);
}
export async function withVideoFixture(
filePrefix: string,
run: (params: MediaFixtureParams) => Promise<void>,
) {
await withMediaFixture(
{
filePrefix,
extension: "mp4",
mediaType: "video/mp4",
fileContents: Buffer.from("video"),
},
run,
);
}