From 2b8fb535900d3e6ae09e1eb402f8aa86de80bba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C4=93ctia=20Landau?= Date: Mon, 24 Mar 2025 19:11:32 +0200 Subject: [PATCH] Add `style/indent` to the `tests` macro --- src/hyperfiddle/rcf.cljc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hyperfiddle/rcf.cljc b/src/hyperfiddle/rcf.cljc index 4ac12ed..5937727 100644 --- a/src/hyperfiddle/rcf.cljc +++ b/src/hyperfiddle/rcf.cljc @@ -103,7 +103,9 @@ convenience, defaults to println outside of tests context."} (when-some [file (resolve-file env ns-sym)] (str/starts-with? (.getPath file) current-dir))))) -(defmacro tests [& body] +(defmacro tests + {:style/indent 1} + [& body] (let [body `(~@body nil) ; return nil like comment, unlike do name (gen-name &form) ns (if (:js-globals &env)