kaocha

tatut 2023-08-24T05:13:34.038739Z

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

tatut 2023-08-24T05:14:47.408519Z

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])

tatut 2023-08-24T05:31:22.186199Z

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