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
import { afterEach, describe, expect, it, vi } from "vitest";
import { openStdin } from "./stdin";
describe("openStdin", () => {
afterEach(() => {
vi.unstubAllGlobals();
});
it("keeps Node's own stdin outside Windows", () => {
vi.stubGlobal("process", { ...process, platform: "linux", stdin: "the-stdin" });
expect(openStdin()).toBe("the-stdin");
});
});