## Lesson — Use a centralized cleanup helper with retry semantics

**Tags:** testing, fs, windows

Use a centralized cleanup helper with retry semantics (e.g., maxRetries: 3) for temporary directories to prevent intermittent test failures caused by Windows file locks.
