Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
test: assert the prepared recording id reaches the start request
EtienneLescot243ac2782d57
diff --git a/src/hooks/useScreenRecorder.nativeLinuxWebcamCursor.test.tsx b/src/hooks/useScreenRecorder.nativeLinuxWebcamCursor.test.tsxindex f3845f882..7711b3552 100644--- a/src/hooks/useScreenRecorder.nativeLinuxWebcamCursor.test.tsx+++ b/src/hooks/useScreenRecorder.nativeLinuxWebcamCursor.test.tsx@@ -152,10 +152,13 @@ describe("useScreenRecorder native Linux prepare", () => {expect(api.prepareNativeLinuxRecording).toHaveBeenCalledTimes(1);await act(async () => {- answerPicker({ success: true, recordingId: 7 });+ answerPicker({ success: true, recordingId: 42 });});await settle(3_500);expect(api.startNativeLinuxRecording).toHaveBeenCalledTimes(1);+ expect(api.startNativeLinuxRecording).toHaveBeenCalledWith(+ expect.objectContaining({ recordingId: 42 }),+ );expect(view.result.current.recording).toBe(true);});});