PrepGenAICerts
← Back to Labs

Path-Specific Rules

claude code workflowsFill in Blank

Complete the YAML frontmatter for a testing rule file that should automatically apply whenever Claude edits any test file, regardless of directory location.

# .claude/rules/testing.md
---
paths:
  - ""
---

## Testing Conventions

- Use describe/it blocks with descriptive names
- Follow AAA pattern: Arrange, Act, Assert
- Mock external dependencies, never call real APIs
- Each test file must have at least one integration test
- Use data-testid attributes for component queries
Next Exercise →

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.