fix(client): ensure digital employee schema

This commit is contained in:
baiyanyun
2026-06-07 18:39:19 +08:00
parent 6deea42de1
commit 5e76828afe
6 changed files with 196 additions and 164 deletions

View File

@@ -6,6 +6,7 @@ const mockState = vi.hoisted(() => ({
}));
vi.mock("../../db", () => ({
ensureDigitalEmployeeSchema: () => true,
getDb: () => mockState.db,
readSetting: (key: string) => mockState.settings.get(key) ?? null,
writeSetting: (key: string, value: unknown) => mockState.settings.set(key, value),