PrepGenAICerts
← Back to Labs

Path-Specific Rules

claude code workflows✓Fill 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 is an independent exam-prep site. It is not affiliated with, endorsed by, or sponsored by Anthropic, PBC. Claude and Anthropic are trademarks of Anthropic, PBC. Exam details are taken from publicly available Anthropic and Pearson documentation. About PrepGenAICerts.