Fork me on GitHub
#kaocha
<
2023-08-24
>
tatut05:08:34

I’m trying to use the hooks plugin to add a pre-test hook, but whenever I add the :kaocha.hooks/pre-test [my.hooks/some-hook] my run fails in a spec error without ever running the hook

tatut05:08:47

should contain keys: :kaocha.testable/id, :kaocha.testable/type

| key                   | spec               |
|=======================+====================|
| :kaocha.testable/id   | keyword?           |
|-----------------------+--------------------|
| :kaocha.testable/type | qualified-keyword? |

-- Relevant specs -------

:kaocha/testable:
  (clojure.spec.alpha/keys
   :req
   [:kaocha.testable/type :kaocha.testable/id]
   :opt
   [:kaocha.testable/meta :kaocha.testable/wrap])

tatut05:08:22

found that it doesn’t seem to find my code, and that is causing this weird problem… if I put an inline (fn [test _] …) as a hook, it works