fix(derive): suggest valid component scopes

This commit is contained in:
slhx agent
2026-07-13 10:56:04 +02:00
parent 217061c242
commit 8fd333090d
4 changed files with 33 additions and 3 deletions
+4
View File
@@ -223,6 +223,10 @@ mod handlers {
stderr.contains("#[hemx::component(\"todos\")] does not match any generated handles"),
"missing unknown component diagnostic in stderr:\n{stderr}"
);
assert!(
stderr.contains("available generated components: admin"),
"unknown scope diagnostic must name the valid repair choice:\n{stderr}"
);
}
#[test]