Skip to content

[BE-146] vendors and purchase-orders modules have only single happy-path smoke tests #1288

Description

@yusuftomilola

Overview

The only tests touching VendorsService/PurchaseOrdersService are two it() blocks in backend/src/ibinola.spec.ts ("VendorsService creates vendor records", "PurchaseOrdersService receives POs") — no co-located specs, no coverage of VendorsService.update(), and no coverage of the PO status-transition gaps called out in [BE-119]/[BE-120].

Tasks

  • Move and expand coverage into backend/src/vendors/vendors.service.spec.ts and backend/src/purchase-orders/purchase-orders.service.spec.ts.
  • Add coverage for VendorsService.update().
  • Once [BE-119]/[BE-120] land, add tests for the full PO status state machine.

Acceptance Criteria

  • Both modules have real, co-located coverage beyond their single existing happy-path tests.

Dependencies

PO transition coverage depends on [BE-119].

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendtestingTests, QA, and quality assurance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions