Skip to content

Add unit tests for all services current coverage is below 50% for most modules #882

Description

@nanaf6203-bit

Problem

Several modules have zero test files: search (9 services), notifications, dashboard, neighborhoods, open-house, backup. Others have minimal coverage.

Expected Outcome

All services have unit tests with at least 70% line coverage.

Acceptance Criteria

  • Each service has a corresponding .spec.ts file
  • Tests cover success paths, error paths, edge cases
  • Mocked PrismaService with proper return types

Files Affected

New spec files for untested services, jest.config.js

Difficulty

Medium

Estimated Effort

Large (ongoing)

Labels

testing, quality, tech-debt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions