Skip to content

clj-kondo hook for the single test version of defexpect #37

Closed
@seancorfield

Description

@seancorfield

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.

(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 #29 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions