## Lesson — When testing diagnostic output, assert that warnings

**Tags:** testing, dx

When testing diagnostic output, assert that warnings include the specific file path prefix. This ensures the error reporting logic correctly attributes issues to their source files, which is critical for developer experience.
