af-write-jest-tests

Write Jest unit tests for pure functions, validation logic, and business rules. Use when creating test files, debugging failing unit tests, or improving test coverage for non-UI code.

SKILL.md

GitHub

Jest Unit Tests

What to read

TDD workflow (Red → Green → Refactor): → testing-guide.md#tdd-workflow

Jest setup, test structure, mocking, and fixtures: → testing-guide.md#unit-testing-with-jest

Test best practices (naming, AAA pattern, independence): → testing-guide.md#best-practices

Running tests and CI/CD integration: → testing-guide.md#running-tests

For comprehensive testing rules and pitfalls: → af-configure-test-frameworks/SKILL.md