mirror of
https://github.com/status-im/reagent.git
synced 2025-01-27 04:05:50 +00:00
Make tests only run once when figwheel reloads
This commit is contained in:
parent
a2b5acb68f
commit
a1e4de4d68
21
env/dev/devsetup.cljs
vendored
21
env/dev/devsetup.cljs
vendored
@ -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!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user