Skip to content

Commit 23a8d26

Browse files
committed
test(fix): add mock node:path before importing startRecordingScreen
1 parent 592dfad commit 23a8d26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/commands/extension/startRecordingScreen.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
* Unit tests for startRecordingScreen extension command.
33
*/
44
import { describe, it, expect, vi, beforeEach } from 'vitest';
5+
6+
vi.mock(import('node:path'), async (importOriginal) => {
7+
const actual = await importOriginal();
8+
return { ...actual };
9+
});
10+
511
import { startRecordingScreen } from '../../../lib/commands/extension';
612
import { ScreenRecorder } from '../../../lib/commands/screen-recorder';
713
import { createMockDriver } from '../../fixtures/driver';

0 commit comments

Comments
 (0)