clj-kondo hook for the single test version of defexpect
needs analysis
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 条评论