Files
wehub-resource-sync 1a390b2815
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
/ test (push) Failing after 0s
secretlint / Run secretlint to diff files (push) Failing after 1s
UI-TARS E2E Test / E2E (macos-13) (push) Has been cancelled
UI-TARS E2E Test / E2E (macos-latest) (push) Has been cancelled
UI-TARS E2E Test / E2E (windows-latest) (push) Has been cancelled
CI Test, Typecheck / Test & Typecheck (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:08:49 +08:00

29 lines
440 B
TypeScript

import { vi } from 'vitest';
vi.mock('electron-log', () => ({
default: {
scope: () => ({
info: console.info,
error: console.error,
warn: console.warn,
debug: console.debug,
}),
initialize: vi.fn(),
transports: {
file: {
level: 'info',
},
},
},
}));
// Mock electron
vi.mock('electron', () => ({
app: {
on: vi.fn(),
},
shell: {
openPath: vi.fn(),
},
}));