Skip to content

Commit

Permalink
Change test runner to use local karma binary
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed May 1, 2024
1 parent 20d4070 commit f71f98f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/haslett/test_runner.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
(:require [doo.core :as doo]
[org.httpkit.server :as httpkit]))

(def doo-opts
{:paths {:karma "node_modules/karma/bin/karma"}})

(def compiler-opts
{:output-to "target/main.js"
:output-dir "target"
Expand All @@ -16,7 +19,7 @@
(httpkit/run-server echo-handler {:port 3200}))

(defn run-tests []
(doo/run-script :firefox-headless compiler-opts))
(doo/run-script :firefox-headless compiler-opts doo-opts))

(defn -main []
(println "Starting server")
Expand Down

0 comments on commit f71f98f

Please sign in to comment.