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
fix(ci): repair the three checks the rebase onto v1.8.0 broke
Etienne Lescotdc5e07cdecae
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 18b1582ad..45e3d9508 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -47,7 +47,7 @@ jobs:- name: Typecheck tests against a baselineshell: bashenv:- BASELINE: 71+ BASELINE: 66run: |set -uo pipefailCOUNT=$(npx tsc -p tsconfig.test.json --noEmit 2>&1 | grep -c 'error TS' || true)diff --git a/crates/compositor/tests/compose_linux.rs b/crates/compositor/tests/compose_linux.rsindex 48502dbdc..9aa60d928 100644--- a/crates/compositor/tests/compose_linux.rs+++ b/crates/compositor/tests/compose_linux.rs@@ -8,6 +8,13 @@//! `crates/fixture/screen.mp4`. Sinon skip (le teardown Vulkan/Mesa segfault a//! l'exit apres le rendu -- verifier via la sortie, pas l'exit code).+// Linux UNIQUEMENT, comme `warp_device_cannot_decode.rs` l'est a Windows. Les+// fichiers de `tests/` sont compiles quelle que soit la plateforme : sans cette+// porte, `cargo check` sous Windows resout `pipeline::Decoder` vers+// `pipeline_windows::Decoder`, qui est `pub(crate)` -- et le check Windows casse+// sur un test qui ne s'y executera jamais.+#![cfg(target_os = "linux")]+use std::path::Path;use openscreen_compositor::compositor::Compositor;diff --git a/electron/native-bridge/cursor/recording/pipeWireCursorRecordingSession.test.ts b/electron/native-bridge/cursor/recording/pipeWireCursorRecordingSession.test.tsindex 3615bc388..0058079d3 100644--- a/electron/native-bridge/cursor/recording/pipeWireCursorRecordingSession.test.ts+++ b/electron/native-bridge/cursor/recording/pipeWireCursorRecordingSession.test.ts@@ -2,10 +2,23 @@ import { EventEmitter } from "node:events";import { PassThrough, Writable } from "node:stream";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+/**+ * The cast on `actual` is written out in each factory rather than shared in a+ * helper: `vi.mock` calls are HOISTED above every top-level statement, so a+ * module-scope helper is still in its temporal dead zone when the factory runs+ * and the mock dies with "Cannot access 'x' before initialization".+ *+ * The cast itself is needed because these modules DO carry a default export at+ * runtime — the CJS namespace, which the code under test may import — while+ * `@types/node` declares only the named ones. Spreading it keeps that shape+ * intact instead of dropping it.+ */+type WithDefault = { default?: Record<string, unknown> };+vi.mock("node:child_process", async (importOriginal) => {const actual = await importOriginal<typeof import("node:child_process")>();const spawn = vi.fn();- return { ...actual, spawn, default: { ...(actual.default ?? {}), spawn } };+ return { ...actual, spawn, default: { ...((actual as WithDefault).default ?? {}), spawn } };});vi.mock("node:fs", async (importOriginal) => {@@ -15,7 +28,7 @@ vi.mock("node:fs", async (importOriginal) => {return {...actual,accessSync: vi.fn(),- default: { ...(actual.default ?? {}), accessSync: vi.fn() },+ default: { ...((actual as WithDefault).default ?? {}), accessSync: vi.fn() },};});diff --git a/scripts/build-linux-pipewire-helper.mjs b/scripts/build-linux-pipewire-helper.mjsindex 1f5144d36..e5c147827 100644--- a/scripts/build-linux-pipewire-helper.mjs+++ b/scripts/build-linux-pipewire-helper.mjs@@ -114,13 +114,7 @@ for (const dir of [outDir, devDir]) {* undefined symbol: avcodec_send_frame, version LIBAVCODEC_62*/function stageFfmpeg(dir) {- const source = path.join(- root,- "crates",- "thirdparty",- "ffmpeg-linux64-lgpl-shared",- "lib",- );+ const source = path.join(root, "crates", "thirdparty", "ffmpeg-linux64-lgpl-shared", "lib");if (!fs.existsSync(source)) {console.warn(`Vendored ffmpeg not found at ${source}; the helper will fall back to its ` +diff --git a/src/lib/ai-edition/store/projectStore.test.ts b/src/lib/ai-edition/store/projectStore.test.tsindex 26e593e19..a9ae6f026 100644--- a/src/lib/ai-edition/store/projectStore.test.ts+++ b/src/lib/ai-edition/store/projectStore.test.ts@@ -36,7 +36,11 @@ const sampleDoc = {// load site (DocumentService, browserShim) runs `migrateRawDocumentToCurrent`// before returning, and the renderer's `parseDocument` is a pure v6// validator. Test fixtures model the post-hoist contract.- schemaVersion: 6,+ // `as const` and not a bare 6: the document type pins this field to the+ // LITERAL 6, and an unannotated object literal widens it to `number` — so+ // every `document: sampleDoc` below fails to type-check for a fixture that+ // is, in fact, exactly right.+ schemaVersion: 6 as const,project: {id: "proj_test",title: "Test",diff --git a/src/native/nativeCompositorStore.test.ts b/src/native/nativeCompositorStore.test.tsindex ae19569cd..e0a741da0 100644--- a/src/native/nativeCompositorStore.test.ts+++ b/src/native/nativeCompositorStore.test.ts@@ -2,7 +2,13 @@ import { beforeEach, describe, expect, it, vi } from "vitest";import { DEFAULT_EDITOR_SETTINGS } from "@/lib/ai-edition/store/editorSettings";import type { CompositorParamValue } from "./contracts";-const setCompositorParam = vi.fn(() => Promise.resolve());+// The parameter list is spelled out even though the body ignores it: `vi.fn`+// infers the mock's call signature from the implementation, so a zero-argument+// one types `mock.calls` as an empty tuple and every `calls[i][1]` below becomes+// a type error rather than a string.+const setCompositorParam = vi.fn((_id: number, _key: string, _value: CompositorParamValue) =>+ Promise.resolve(),+);vi.mock("./compositorViewClient", () => ({setCompositorParam: (id: number, key: string, value: CompositorParamValue) =>