Skip to content

Commit

Permalink
Fix testing dependencies issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Aug 1, 2023
1 parent 3e2c432 commit 2e3a066
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/node/src/subcommands/testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { EventEmitter2, EventEmitterModule } from '@nestjs/event-emitter';
import { ScheduleModule, SchedulerRegistry } from '@nestjs/schedule';
import {
ConnectionPoolService,
ConnectionPoolStateManager,
DbModule,
NodeConfig,
PoiService,
StoreService,
TestRunner,
} from '@subql/node-core';
import { ConfigureModule } from '../configure/configure.module';
import { SubqueryProject } from '../configure/SubqueryProject';
Expand All @@ -23,19 +24,18 @@ import { ProjectService } from '../indexer/project.service';
import { SandboxService } from '../indexer/sandbox.service';
import { UnfinalizedBlocksService } from '../indexer/unfinalizedBlocks.service';
import { MetaModule } from '../meta/meta.module';
import { TestingService } from './testing.service';

@Module({
providers: [
StoreService,
TestingService,
EventEmitter2,
PoiService,
SandboxService,
DsProcessorService,
DynamicDsService,
UnfinalizedBlocksService,
ProjectService,
UnfinalizedBlocksService,
ConnectionPoolStateManager,
ConnectionPoolService,
{
provide: 'IProjectService',
Expand All @@ -53,8 +53,16 @@ import { TestingService } from './testing.service';
},
inject: ['ISubqueryProject', ConnectionPoolService],
},
IndexerManager,
SchedulerRegistry,
TestRunner,
{
provide: 'IApi',
useClass: ApiService,
},
{
provide: 'IIndexerManager',
useClass: IndexerManager,
},
],

imports: [MetaModule, FetchModule],
Expand Down

0 comments on commit 2e3a066

Please sign in to comment.