Skip to content

Commit a044a13

Browse files
committed
test(ipc): simplify mocking
1 parent 1ff8118 commit a044a13

File tree

7 files changed

+186
-114
lines changed

7 files changed

+186
-114
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { Mocked } from 'vitest';
2+
import { vi } from 'vitest';
3+
import type { Game } from '../game.instance.js';
4+
5+
export class GameInstanceMock implements Mocked<typeof Game> {
6+
getInstance = vi.fn();
7+
newInstance = vi.fn();
8+
}

0 commit comments

Comments
 (0)