mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-19 07:59:39 +00:00
33 lines
No EOL
789 B
TypeScript
33 lines
No EOL
789 B
TypeScript
import { vi } from "vitest";
|
|
|
|
vi.mock('../../src/store/authStore', () => ({
|
|
useAuthStore: {
|
|
token: null,
|
|
username: null,
|
|
email: null,
|
|
user_id: null,
|
|
appearance: 'light',
|
|
language: 'system',
|
|
isFirstLaunch: true,
|
|
modelType: 'cloud' as const,
|
|
cloud_model_type: 'gpt-4.1' as const,
|
|
initState: 'permissions' as const,
|
|
share_token: null,
|
|
workerListData: {},
|
|
},
|
|
getAuthStore: vi.fn(() => ({
|
|
token: null,
|
|
username: null,
|
|
email: null,
|
|
user_id: null,
|
|
appearance: 'light',
|
|
language: 'system',
|
|
isFirstLaunch: true,
|
|
modelType: 'cloud' as const,
|
|
cloud_model_type: 'gpt-4.1' as const,
|
|
initState: 'permissions' as const,
|
|
share_token: null,
|
|
workerListData: {},
|
|
})),
|
|
useWorkerList: vi.fn(() => [])
|
|
})) |