ITADN

clj-kondo hook for the single test version of defexpect

#37Closedseancorfield 创建于 2024-06-29
needs analysis
S
seancorfieldcommented
The single test version of `defexpect` with an expected string can throw spurious errors, tho I think this is a clj-kondo issue and not an expectations issue. ```clojure (defexpect missing-body-in-when-test "Missing body in when" (:message (check-str "(when true)"))) ``` "Missing body in when" is labeled as a "missing docstring" currently, due to the `:lint-as` rule tying `defexpect` to `deftest`. _Originally posted by @NoahTheDuke in https://github.com/clojure-expectations/clojure-test/issues/29#issuecomment-1447414353_
关闭于 2024-12-12 1 条评论