diff --git a/crates/ty_ide/src/completion.rs b/crates/ty_ide/src/completion.rs index 72d4a29756..2470308c41 100644 --- a/crates/ty_ide/src/completion.rs +++ b/crates/ty_ide/src/completion.rs @@ -2262,7 +2262,11 @@ import fo ", ); - assert_snapshot!(test.completions_without_builtins(), @""); + // This snapshot would generate a big list of modules, + // which is kind of annoying. So just assert that it + // runs without panicking and produces some non-empty + // output. + assert!(!test.completions_without_builtins().is_empty()); } // Ref: https://github.com/astral-sh/ty/issues/572 @@ -2274,7 +2278,11 @@ import foo as ba ", ); - assert_snapshot!(test.completions_without_builtins(), @""); + // This snapshot would generate a big list of modules, + // which is kind of annoying. So just assert that it + // runs without panicking and produces some non-empty + // output. + assert!(!test.completions_without_builtins().is_empty()); } // Ref: https://github.com/astral-sh/ty/issues/572 @@ -2286,7 +2294,11 @@ from fo import wat ", ); - assert_snapshot!(test.completions_without_builtins(), @""); + // This snapshot would generate a big list of modules, + // which is kind of annoying. So just assert that it + // runs without panicking and produces some non-empty + // output. + assert!(!test.completions_without_builtins().is_empty()); } // Ref: https://github.com/astral-sh/ty/issues/572