Skip to content

ci: add unit test workflow for pull requests #8

ci: add unit test workflow for pull requests

ci: add unit test workflow for pull requests #8

Triggered via pull request March 7, 2026 00:11
Status Failure
Total duration 1m 40s
Artifacts

unit-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test
Process completed with exit code 1.
test/commands/extension/startRecordingScreen.test.ts > startRecordingScreen > force-stops existing recording when forceRestart=true (default): lib/commands/extension.ts#L697
Error: [vitest] No "extname" export is defined on the "node:path" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("node:path"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Object.startRecordingScreen lib/commands/extension.ts:697:21 ❯ test/commands/extension/startRecordingScreen.test.ts:100:9
test/commands/extension/startRecordingScreen.test.ts > startRecordingScreen > passes options to ScreenRecorder: lib/commands/extension.ts#L697
Error: [vitest] No "extname" export is defined on the "node:path" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("node:path"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Object.startRecordingScreen lib/commands/extension.ts:697:21 ❯ test/commands/extension/startRecordingScreen.test.ts:52:36
test/commands/extension/startRecordingScreen.test.ts > startRecordingScreen > creates a ScreenRecorder and starts recording: lib/commands/extension.ts#L697
Error: [vitest] No "extname" export is defined on the "node:path" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("node:path"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Object.startRecordingScreen lib/commands/extension.ts:697:21 ❯ test/commands/extension/startRecordingScreen.test.ts:37:36