testing-patterns

Define and enforce scalable testing patterns for ColdMail.ru applications.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/djd1m/2026-PU-APR-LESSON-05-instanly-01 --skill testing-patterns-djd1m
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/djd1m/2026-PU-APR-LESSON-05-instanly-01/tree/main/.claude/skills/testing-patterns
Command: npx skills add https://github.com/djd1m/2026-PU-APR-LESSON-05-instanly-01 --skill testing-patterns-djd1m

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a complete framework of testing patterns for ColdMail.ru, covering unit tests (Jest), integration tests (Supertest), and E2E tests (Playwright) to improve reliability and maintainability of the platform.

Core Features & Use Cases

  • Unit testing: patterns, naming, and fixtures for fast, repeatable tests across modules.
  • Integration & E2E testing: end-to-end coverage for critical user journeys with mocked services and realistic data.
  • Quality targets: guidance on code coverage, test data generation, and mock strategies for AI components.

Quick Start

Run the testing patterns to scaffold a new test suite and apply mocks for core services.

Frequently Asked Questions about testing-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure scalable testing patterns for unit, integration, and E2E tests?

Scalable testing patterns standardize test structures, mock strategies, and coverage targets across unit, integration, and E2E suites. This enforces reliability and maintainability for critical application modules like campaigns, warmup engines, and email sending.

What is the best way to mock AI generation and core services in integration tests?

Mocking AI generation and core services in integration tests requires standardized mock strategies and realistic test data generation. This ensures end-to-end coverage for critical user journeys remains reliable without relying on live external dependencies.

Does this testing framework work with Jest, Supertest, and Playwright?

Yes, the testing framework specifies tooling for Jest, Supertest, and Playwright to cover unit, integration, and E2E tests. It applies standardized patterns across these tools to scaffold test suites and apply mocks for core services.

How do I enforce code coverage targets for complex modules like warmup engines?

Code coverage targets are enforced by applying standardized testing patterns and quality guidance across modules. Specifying coverage thresholds for warmup engines, email sending, and AI components ensures platform reliability and maintainability.

Can I scaffold a new test suite and apply mocks for core services quickly?

Yes, you can run the testing patterns to quickly scaffold a new test suite and apply mocks for core services. This provides fast, repeatable unit tests and realistic data for integration and E2E coverage.

When should I use E2E testing versus integration testing for email sending modules?

Use integration testing with mocked services to verify email sending module APIs, and E2E testing with Playwright for critical user journeys. Standardized patterns ensure both test types provide realistic data and reliable coverage.