ci: add unit test workflow for pull requests #8
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
|