[BLOCKER] Fix failing Prisma enum import tests in job-steps.service.spec.ts #182

Closed
opened 2026-02-02 17:23:05 +00:00 by jason.woltje · 0 comments
Owner

Problem

13 test failures in job-steps.service.spec.ts due to undefined Prisma enum imports (JobStepPhase, JobStepStatus, JobStepType).

Root Cause

Prisma client not properly generated in test environment before tests execute.

Impact

  • Blocks M4.2-Infrastructure milestone completion
  • CI/CD pipeline fails
  • Cannot verify test coverage

Acceptance Criteria

  • All 13 tests pass in job-steps.service.spec.ts
  • Prisma client generation added to test setup
  • pnpm test succeeds without manual intervention
  • CI/CD pipeline includes prisma:generate step

Fix

Location: apps/api/src/job-steps/job-steps.service.spec.ts

  1. Add pnpm prisma:generate to pre-test script
  2. Or add to beforeAll hook in test file
  3. Verify all enum imports resolve correctly

Testing

pnpm prisma:generate
pnpm test job-steps.service.spec.ts

References

M4.2-Infrastructure verification report (2026-02-02)

## Problem 13 test failures in job-steps.service.spec.ts due to undefined Prisma enum imports (JobStepPhase, JobStepStatus, JobStepType). ## Root Cause Prisma client not properly generated in test environment before tests execute. ## Impact - Blocks M4.2-Infrastructure milestone completion - CI/CD pipeline fails - Cannot verify test coverage ## Acceptance Criteria - [ ] All 13 tests pass in job-steps.service.spec.ts - [ ] Prisma client generation added to test setup - [ ] pnpm test succeeds without manual intervention - [ ] CI/CD pipeline includes prisma:generate step ## Fix Location: apps/api/src/job-steps/job-steps.service.spec.ts 1. Add pnpm prisma:generate to pre-test script 2. Or add to beforeAll hook in test file 3. Verify all enum imports resolve correctly ## Testing ```bash pnpm prisma:generate pnpm test job-steps.service.spec.ts ``` ## References M4.2-Infrastructure verification report (2026-02-02)
jason.woltje added this to the M4.2-Infrastructure (0.0.4) milestone 2026-02-02 17:23:05 +00:00
jason.woltje added the testingapiapip0 labels 2026-02-02 17:23:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#182