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:
Ho Ngoc Hai
2026-04-09 00:36:39 +07:00
parent 801e29e65c
commit 62f4f001b6
14 changed files with 973 additions and 1 deletions

View File

@@ -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';

View File

@@ -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,