Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

chore: remove unnecessary test case

towfiqi2e895135c80c
diff --git a/backend/__tests__/managers/handlers/BackupHandler.test.ts b/backend/__tests__/managers/handlers/BackupHandler.test.ts
index cd391c9..32dbcf0 100644
--- a/backend/__tests__/managers/handlers/BackupHandler.test.ts
+++ b/backend/__tests__/managers/handlers/BackupHandler.test.ts
@@ -1214,19 +1214,6 @@ describe('BackupHandler', () => {
handler['dryRunBackup']('plan-1', baseOptions, resticArgsAndEnv)
).rejects.toThrow('Dry run failed');
});
-
- it('should log summary when successful', async () => {
- const consoleLogSpy = jest.spyOn(console, 'log').mockImplementation();
- const summary = { files_new: 20, total_files_processed: 50 };
- mockRunResticCommand.mockResolvedValue(JSON.stringify(summary));
-
- const resticArgsAndEnv = handler.createResticBackupArgs('plan-1', baseOptions as any);
- await handler['dryRunBackup']('plan-1', baseOptions, resticArgsAndEnv);
-
- expect(consoleLogSpy).toHaveBeenCalledWith('dryRunBackup :', summary);
-
- consoleLogSpy.mockRestore();
- });
});
describe('createHandlers - additional tests', () => {
diff --git a/backend/tsconfig.test.json b/backend/tsconfig.test.json
index 7a48075..22f91d4 100644
--- a/backend/tsconfig.test.json
+++ b/backend/tsconfig.test.json
@@ -17,7 +17,8 @@
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noErrorTruncation": true
+ "noErrorTruncation": true,
+ "ignoreDeprecations": "6.0"
},
"include": ["__tests__/**/*", "src/**/*"]
}