chore: finish migrating eslint config files; bump unicorn ()

This commit is contained in:
Daniel Dietzler 2025-03-31 13:18:25 +02:00 committed by GitHub
commit 238c151ac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 883 additions and 1286 deletions
server/test

View file

@ -170,7 +170,9 @@ export const newTestService = <T extends BaseService>(
const mocks: ServiceMocks = {
access: newAccessRepositoryMock(),
// eslint-disable-next-line no-sparse-arrays
logger: automock(LoggingRepository, { args: [, configMock], strict: false }),
// eslint-disable-next-line no-sparse-arrays
cron: automock(CronRepository, { args: [, loggerMock] }),
crypto: newCryptoRepositoryMock(),
activity: automock(ActivityRepository),
@ -181,6 +183,7 @@ export const newTestService = <T extends BaseService>(
config: newConfigRepositoryMock(),
database: newDatabaseRepositoryMock(),
downloadRepository: automock(DownloadRepository, { strict: false }),
// eslint-disable-next-line no-sparse-arrays
event: automock(EventRepository, { args: [, , loggerMock], strict: false }),
job: newJobRepositoryMock(),
apiKey: automock(ApiKeyRepository),
@ -197,6 +200,7 @@ export const newTestService = <T extends BaseService>(
person: automock(PersonRepository, { strict: false }),
process: automock(ProcessRepository, { args: [loggerMock] }),
search: automock(SearchRepository, { args: [loggerMock], strict: false }),
// eslint-disable-next-line no-sparse-arrays
serverInfo: automock(ServerInfoRepository, { args: [, loggerMock], strict: false }),
session: automock(SessionRepository),
sharedLink: automock(SharedLinkRepository),
@ -205,6 +209,7 @@ export const newTestService = <T extends BaseService>(
sync: automock(SyncRepository),
systemMetadata: newSystemMetadataRepositoryMock(),
// systemMetadata: automock(SystemMetadataRepository, { strict: false }),
// eslint-disable-next-line no-sparse-arrays
tag: automock(TagRepository, { args: [, loggerMock], strict: false }),
telemetry: newTelemetryRepositoryMock(),
trash: automock(TrashRepository),