Testing Rules
- Use descriptive test names: "should [expected] when [condition]"
- Mock external dependencies, not internal modules
- Clean up side effects in afterEach
\}, \{ id: 'rule-api', label: 'api-design.md', type: 'file', icon: 'md', color: '#9B7BC4', badge: 'committed', oneLiner: 'API conventions scoped to backend code', when: <>Loaded when Claude reads a file matching the <C>paths:</C> glob below</>, description: <>A second example showing a rule scoped to backend code. The <C>paths:</C> glob matches files under src/api/, so these conventions load only when Claude is editing API routes.</>, example:--- paths:- "src/api/**/*.ts"