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
29 lines
440 B
TypeScript
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(),
|
|
},
|
|
}));
|