# Lens: Mocking Auditor

Analyze how external dependencies are handled.

## Checklist

### 1. "Don't Mock What You Don't Own"
*   **❌ Flag:** Mocking `axios`, `fs`, `react-router` or other 3rd party libraries directly.
*   **Why:** Brittle. Changes in the library break your tests even if your code is fine.
*   **Fix:** Suggest a wrapper (Adapter pattern) and mock your own wrapper.

### 2. Implementation vs Behavior
*   **❌ Flag:** Tests that depend on private variables or internal method names.
*   **Fix:** Test only the public API.

### 3. Complex Mock Setup
*   **❌ Flag:** Mock setup that is > 50% of the test file.
*   **Fix:** Suggest an integration test with real (managed) dependencies or a simpler mock strategy.
