← 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