Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(share): cover includeFetching playback reload behavior
Richie McIlroy3522cd700524
diff --git a/apps/web/__tests__/unit/upload-progress-playback.test.ts b/apps/web/__tests__/unit/upload-progress-playback.test.tsindex 6020ebf24..77448b0db 100644--- a/apps/web/__tests__/unit/upload-progress-playback.test.ts+++ b/apps/web/__tests__/unit/upload-progress-playback.test.ts@@ -126,7 +126,29 @@ describe("shouldDeferPlaybackSource", () => {progress: 80,message: "Finishing video...",},+ {+ status: "processing",+ lastUpdated: new Date(),+ progress: 90,+ message: "Still processing...",+ },+ ),+ ).toBe(false);+ expect(+ shouldReloadPlaybackAfterUploadCompletes(+ {+ status: "fetching",+ },+ null,+ ),+ ).toBe(false);+ expect(+ shouldReloadPlaybackAfterUploadCompletes(+ {+ status: "fetching",+ },null,+ { includeFetching: true },),).toBe(true);expect(