pub fn normalize_text(input: &str, home: &Path) -> String
Normalize text for deterministic snapshots.
This strips ANSI escape codes, converts CRLF to LF, and replaces occurrences of the provided home path with <HOME>.
home
<HOME>