Make tests only run once when figwheel reloads

This commit is contained in:
Dan Holmsand 2015-02-08 12:26:39 +01:00
parent a2b5acb68f
commit a1e4de4d68

21
env/dev/devsetup.cljs vendored
View File

@ -1,8 +1,12 @@
(ns devsetup
(:require [demo :as site]
[runtests]
[reagent.core :as r]
[figwheel.client :as fw]))
(ns ^:figwheel-always devsetup
(:require [demo :as site]
[runtests]
[reagent.core :as r]
[figwheel.client :as fw]))
(when r/is-client
(fw/start
{:websocket-url "ws://localhost:3449/figwheel-ws"}))
(defn test-results []
[runtests/test-output-mini])
@ -11,11 +15,4 @@
(demo/start! {:test-results test-results})
(runtests/run-tests))
(when r/is-client
(fw/start
{:websocket-url "ws://localhost:3449/figwheel-ws"
:jsload-callback #(start!)
:heads-up-display true
:load-warninged-code false}))
(start!)