Skip to content

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

@dustingetz

Description

@dustingetz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions