mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 16:27:18 +02:00
test(startup): mock backup settings service
This commit is contained in:
1 parent
7ed50a74d3
commit
c1a7cb6eaa
1 file changed
+9
@@ -128,6 +128,15 @@ vi.mock("../services/index.js", () => ({
|
||||
})),
|
||||
tickTimers: vi.fn(async () => ({ enqueued: 0 })),
|
||||
})),
|
||||
instanceSettingsService: vi.fn(() => ({
|
||||
getGeneral: vi.fn(async () => ({
|
||||
backupRetention: {
|
||||
dailyDays: 7,
|
||||
weeklyWeeks: 4,
|
||||
monthlyMonths: 1,
|
||||
},
|
||||
})),
|
||||
})),
|
||||
reconcilePersistedRuntimeServicesOnStartup: vi.fn(async () => ({ reconciled: 0 })),
|
||||
routineService: vi.fn(() => ({
|
||||
tickScheduledTriggers: vi.fn(async () => ({ triggered: 0 })),
|
||||
|
||||
Reference in new issue
Block a user