ci: bootstrap Linux release toolchains
This commit is contained in:
parent
30d51278c9
commit
6a9608c447
5 changed files with 192 additions and 11 deletions
|
|
@ -76,6 +76,30 @@ vi.mock('electron', () => ({
|
|||
decryptString: vi.fn((b: Buffer) => b.toString('utf-8')),
|
||||
},
|
||||
Notification: vi.fn(),
|
||||
globalShortcut: {
|
||||
register: vi.fn(() => true),
|
||||
unregister: vi.fn(),
|
||||
unregisterAll: vi.fn(),
|
||||
isRegistered: vi.fn(() => false),
|
||||
},
|
||||
}))
|
||||
|
||||
// Unit tests must not load the native global keyboard hook. Linux shell runners
|
||||
// intentionally do not provide an X11 session or libXrandr, and product-level
|
||||
// hook behaviour is covered by runtime/E2E validation instead.
|
||||
vi.mock('uiohook-napi', () => ({
|
||||
uIOhook: {
|
||||
on: vi.fn(),
|
||||
removeListener: vi.fn(),
|
||||
start: vi.fn(),
|
||||
stop: vi.fn(),
|
||||
},
|
||||
UiohookKey: new Proxy<Record<string, number>>({}, {
|
||||
get: (_target, property) => Array.from(String(property)).reduce(
|
||||
(value, character) => ((value * 31) + character.charCodeAt(0)) & 0x7fffffff,
|
||||
17,
|
||||
),
|
||||
}),
|
||||
}))
|
||||
|
||||
// WindowManager 모킹 — VoiceModeService가 import하므로 필요
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue