[ty] Limit shown import paths to at most 5 unless ty runs with -v (#20912)

This commit is contained in:
Micha Reiser 2025-10-16 13:18:09 +02:00 committed by GitHub
parent c8133104e8
commit 9393279f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 155 additions and 12 deletions

View file

@ -782,6 +782,8 @@ impl CliTest {
let mut settings = insta::Settings::clone_current();
settings.add_filter(&tempdir_filter(&project_dir), "<temp_dir>/");
settings.add_filter(r#"\\(\w\w|\s|\.|")"#, "/$1");
// 0.003s
settings.add_filter(r"\d.\d\d\ds", "0.000s");
settings.add_filter(
r#"The system cannot find the file specified."#,
"No such file or directory",