remove inline providers from unit tests

This commit is contained in:
Hazelnoot 2025-10-01 11:56:16 -04:00
parent 92892338f3
commit a3e969625d
6 changed files with 33 additions and 76 deletions

View file

@ -16,6 +16,7 @@ import { FileInfo, FileInfoService } from '@/core/FileInfoService.js';
//import { DI } from '@/di-symbols.js';
import { LoggerService } from '@/core/LoggerService.js';
import type { TestingModule } from '@nestjs/testing';
import { CoreModule } from '@/core/CoreModule.js';
import type { MockFunctionMetadata } from 'jest-mock';
const _filename = fileURLToPath(import.meta.url);
@ -41,10 +42,7 @@ describe('FileInfoService', () => {
app = await Test.createTestingModule({
imports: [
GlobalModule,
],
providers: [
LoggerService,
FileInfoService,
CoreModule,
],
})
.useMocker((token) => {