mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
test(recovery): keep the weekly-copy push test to its one signal
With the real dump health wired in, an empty test database also reports a missing dump. The file follows the weekly copy alone; the dump signal is judged in the readiness unit tests.
This commit is contained in:
1 parent
da9d941a24
commit
8678a3edc4
1 file changed
+7
@@ -48,6 +48,13 @@ vi.mock("@parse/node-apn", () => {
|
||||
return { default: { Provider, Notification }, Provider, Notification };
|
||||
});
|
||||
|
||||
// This file follows the weekly-copy signal alone. The database dump has its
|
||||
// own signal, judged in the readiness unit tests; here no dump is scheduled,
|
||||
// so an empty test database does not add a dump alarm of its own.
|
||||
vi.mock("@/lib/recovery/database-dump-health", () => ({
|
||||
readDatabaseBackupHealth: async () => null,
|
||||
}));
|
||||
|
||||
vi.mock("@/lib/db-compat", () => ({
|
||||
ensureDbCompatibility: vi.fn().mockResolvedValue(undefined),
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user