Enforce test-driven development workflow. Use when implementing any new feature or fixing a bug — write the test first, verify it fails, then implement.
Follow strict Red-Green-Refactor for every implementation task.
app/services/user.py → tests/unit/services/test_user.py).# Python
pytest tests/unit -x -v # Run unit tests, stop on first failure
pytest -x -k "test_name" # Run specific test
# TypeScript
npx vitest run --reporter=verbose # Run all tests
npx vitest run path/to/test.ts # Run specific test file