Fork me on GitHub
#figwheel-main
<
2022-03-15
>
jaime14:03:47

When running tests in command-line. Is it required that :open-url config not to be false? I wonder how will this work in CI env?

AJ Jaro18:03:16

I’m working on preventing some issues we incur upon ourselves by identifying the problems during testing, like requiring CLJ frameworks in a CLJC file. We have a CLJC namespace like this:

(ns lumanu.domain.text-message.text-message
  (:require [clj-time.core :as t]))

(def schema
  [:map {:closed true}
   [::idempotency-key {:documentation "The unique string identifying this message to avoid repeats"} :string]
   [::phone-number {:documentation "The phone number this message was sent to"} :string]
   [::content {:documentation "The body of the message"} :string]
   [::created-at {:documentation "The time the message was sent"
                  :optional      true}
    [:fn #(satisfies? t/DateTimeProtocol %)]]
   [::updated-at {:documentation "This field is necessary, but should always mirror created-at"
                  :optional      true}
    [:fn #(satisfies? t/DateTimeProtocol %)]]])
When I run clj -m figwheel.main -b dev -r I see an error in the console output, but when I use the command like this clj -m figwheel.main -bo dev there are no errors. What is the REPL startup doing that it’s finding this error? I’d like to be able to replicate that in our automated testing