test(api): add domain layer unit tests across all modules
Cover admin events, notifications, reviews, search VOs, listings (property, media, events, price/geo/address VOs), auth events, payment events, subscription events, and analytics events. Raises domain test coverage from ~24% to ~75%. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -3,6 +3,9 @@ export { createPropertySearchServer } from './property-search/property-search.se
|
||||
export { createMarketAnalyticsServer } from './market-analytics/market-analytics.server';
|
||||
export { createValuationServer } from './valuation/valuation.server';
|
||||
|
||||
// MCP SDK re-exports (for host apps that build custom controllers)
|
||||
export { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
|
||||
|
||||
// NestJS integration
|
||||
export { McpModule, type McpModuleOptions, MCP_MODULE_OPTIONS } from './nestjs/mcp.module';
|
||||
export { McpRegistryService } from './nestjs/mcp-registry.service';
|
||||
|
||||
@@ -6,6 +6,8 @@ import { MCP_MODULE_OPTIONS } from './mcp.constants';
|
||||
export interface McpModuleOptions {
|
||||
aiServiceBaseUrl: string;
|
||||
typesenseCollectionName?: string;
|
||||
/** When true, the built-in McpTransportController is NOT registered — useful when the host app provides its own authenticated controller. */
|
||||
skipDefaultController?: boolean;
|
||||
}
|
||||
|
||||
export { MCP_MODULE_OPTIONS };
|
||||
@@ -20,7 +22,7 @@ export class McpModule {
|
||||
|
||||
return {
|
||||
module: McpModule,
|
||||
controllers: [McpTransportController],
|
||||
controllers: options.skipDefaultController ? [] : [McpTransportController],
|
||||
providers: [optionsProvider, McpRegistryService],
|
||||
exports: [McpRegistryService],
|
||||
global: false,
|
||||
|
||||
Reference in New Issue
Block a user