rcf icon indicating copy to clipboard operation
rcf copied to clipboard

Disable RCF in the JVM during CLJS build (in :require-macros scenario)

Open dustingetz opened this issue 3 years ago • 2 comments

When the CLJ REPL and Shadow are sharing JVM, RCF tests are enabled at the CLJ repl and Shadow needs to disable JVM RCF tests during incremental builds because :require-macros in a CLJS file will cause the CLJ files to load, running tests if enabled.

https://shadow-cljs.github.io/docs/UsersGuide.html#compile-stages

(defn rcf-shadow-hook 
  {:shadow.build/stage #{:configure :flush}}
  [build-state & args]
  (case (:shadow.build/stage build-state)
    :configure (enable! false)
    :flush (enable!))
  build-state)

dustingetz avatar Sep 21 '22 21:09 dustingetz

I am running with this patch locally for a bit

dustingetz avatar Sep 21 '22 21:09 dustingetz

See https://clojurians.slack.com/archives/C7Q9GSHFV/p1688040336095859?thread_ts=1688031756.398229&cid=C7Q9GSHFV

dustingetz avatar Jun 29 '23 12:06 dustingetz