test(export): stabilize native fallback smoke

This commit is contained in:
wiiiii123
2026-05-13 02:42:21 +07:00
parent e8b81c71ff
commit 5e074e79af
@@ -1,4 +1,5 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { ModernVideoExporter } from "./modernVideoExporter";
const mocks = vi.hoisted(() => {
const videoInfo = {
@@ -73,7 +74,6 @@ describe("ModernVideoExporter native fallback routing", () => {
});
it("falls back to WebCodecs instead of surfacing a native error when Breeze is unavailable", async () => {
const { ModernVideoExporter } = await import("./modernVideoExporter");
const exporter = new ModernVideoExporter({
videoUrl: "file:///recording.mp4",
width: 1920,
@@ -116,5 +116,5 @@ describe("ModernVideoExporter native fallback routing", () => {
expect(result.blob).toBeInstanceOf(Blob);
expect(initializeEncoder).toHaveBeenCalledTimes(1);
expect(mocks.muxerFinalize).toHaveBeenCalledTimes(1);
}, 15_000);
}, 30_000);
});