Skip to content

Commit

Permalink
tests: add mock for process.resourcesPath
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Dec 22, 2024
1 parent 09a0cc0 commit f022658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/pty.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('PtyManager', () => {
let mockPtyProcess: any;

beforeEach(() => {
(process as any).resourcesPath = '/mock/path';
ptyManager = new PtyManager();
mockPtyProcess = {
onData: vi.fn(),
Expand Down

0 comments on commit f022658

Please sign in to comment.