All 12 ModulesModule 9 of 12
Jest + Supertest + Cypress/Playwright

Module 9: Enterprise Testing Pyramid

Master the testing pyramid: Jest unit testing, Supertest API integration testing, Angular Component TestBed, and Playwright/Cypress E2E automation.

JestSupertestAngular TestBedPlaywrightTest DoublesMockingCI/CD Pipeline TestsCode Coverage
Level 1: Build

Level 1: Build — Comprehensive Test Suites

Achieve 85%+ test coverage across backend services, Express routes, Angular signals, and automated E2E flows.

User Story:

As a Tech Lead, I require automated regression test suites that run in under 60 seconds on every Git pull request.

Key Deliverables & Specifications:

  • Jest Unit Tests for DeviceService, JobEngine, and ItentialAdapter
  • Supertest Integration Tests for all Express endpoints
  • Playwright E2E test verifying: Login → View Devices → Trigger Automation → Verify Job Status

Implementation Roadmap:

1. **Unit Testing**: Mock repository layer and test edge cases (duplicate IP, invalid state transitions). 2. **Integration Testing**: Spin up supertest with in-memory MongoMemoryServer. 3. **E2E Automation**: Write Playwright script simulating NOC operator workflow.