From 474fd7f903d4c98ae2439bd3f2cd85c468fdbe29 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Thu, 25 Apr 2024 23:18:59 +0100 Subject: :recycle: Mark runtime tests as erlang-only. --- test/lustre_test.gleam | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lustre_test.gleam b/test/lustre_test.gleam index 638bf89..2330b3c 100644 --- a/test/lustre_test.gleam +++ b/test/lustre_test.gleam @@ -27,6 +27,7 @@ pub fn static_test() { birdie.snap(element.to_string(el), title) } +@target(erlang) pub fn counter_init_test() { let title = "Can render an application's initial state." let app = lustre.simple(counter.init, counter.update, counter.view) @@ -46,6 +47,7 @@ pub fn counter_init_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn counter_update_test() { let title = "Can render an application's state after some updates." let app = lustre.simple(counter.init, counter.update, counter.view) @@ -70,6 +72,7 @@ pub fn counter_update_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn counter_diff_test() { let title = "Can compute a diff from one render to the next" let app = lustre.simple(counter.init, counter.update, counter.view) @@ -107,6 +110,7 @@ pub fn counter_diff_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn fragment_init_test() { let title = "Can render an application's initial state when using fragments" let app = lustre.simple(fragment.init, fragment.update, fragment.view) @@ -126,6 +130,7 @@ pub fn fragment_init_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn fragment_counter_diff_test() { let title = "Can compute a diff from one render to the next with fragments" let app = lustre.simple(fragment.init, fragment.update, fragment.view) -- cgit v1.2.3