Skip to content

Add unit tests for src/messaging/tracing/tracing.service.ts #1529

Description

@RUKAYAT-CODER

Overview

The service src/messaging/tracing/tracing.service.ts has no accompanying *.spec.ts unit test. Adding focused unit tests documents the service's contract, guards against regressions, and raises overall coverage. This is a self-contained, good-first-issue-sized task.

Specifications

Features:

  • The service has unit tests covering its main methods and key edge cases.

Tasks:

  • Add src/messaging/tracing/tracing.service.spec.ts with a NestJS Test.createTestingModule (or direct instantiation) that mocks the service's dependencies.
  • Cover at least: one happy-path per public method, one error/empty-input path, and any obvious edge case.

Impacted Files:

  • src/messaging/tracing/tracing.service.spec.ts

Acceptance Criteria

  • New unit tests for the service pass in CI and meaningfully exercise its public methods.
  • All the CI passes
  • Star the repo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerstestAdds or improves tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions