Skip to content

Backend already has @nestjs/testing but most tests instantiate services with no mocks #96

Description

@mercy60

Internal ID: #95

Imported from ISSUES.md via scripts/import-issues.mjs.

Problem Statement. quiz.service.spec.ts uses Test.createTestingModule({ providers: [QuizService] }) — this leaves QuizService partially constructed because its dependencies (manual injections) are not provided.

Expected Outcome.

  • Each spec builds a complete module with mocks.

Acceptance Criteria.

  • Tests succeed independently.

Files / modules affected.

  • All spec files.

Dependencies. None.

Difficulty / Effort. Medium / L (≈ 1 week).

Labels. testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingImported from ISSUES.md

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions