We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3260f0e commit 4e099c6Copy full SHA for 4e099c6
1 file changed
packages/server/src/package/check/tests.rs
@@ -70,6 +70,26 @@ async fn nonexistent_function() -> tg::Result<()> {
70
.await
71
}
72
73
+#[tokio::test]
74
+async fn no_return_value() -> tg::Result<()> {
75
+ test(
76
+ temp::directory! {
77
+ "tangram.ts" => indoc!(r"
78
+ export default tg.target(() => {});
79
+ "),
80
+ },
81
+ |_, output| async move {
82
+ assert_json_snapshot!(output, @r#"
83
+ {
84
+ "diagnostics": []
85
+ }
86
+ "#);
87
+ Ok(())
88
89
+ )
90
+ .await
91
+}
92
+
93
async fn test<F, Fut>(artifact: temp::Artifact, assertions: F) -> tg::Result<()>
94
where
95
F: FnOnce(Server, tg::package::check::Output) -> Fut,
0 commit comments