samedi 25 avril 2020

Unable to run tests in clojurescript with use-fixtures

I have the following use-fixtures defined in my test file, along with a sample test to check whether use-fixtures is calling that anonymous function which is the value of the :before key.

(use-fixtures :each {:before (fn []
                               (prn "using fixtures")
                               )})
(deftest use-fixtures?
  (is (= 1 1)))

But running this test doesn't print "using fixtures" in the console or in the repl as expected. Why is this?

Aucun commentaire:

Enregistrer un commentaire