This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-17
Channels
- # adventofcode (25)
- # announcements (2)
- # babashka (16)
- # babashka-sci-dev (16)
- # beginners (213)
- # calva (15)
- # clj-kondo (126)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (6)
- # clojure (230)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-uk (3)
- # conjure (10)
- # core-async (15)
- # cursive (33)
- # fulcro (58)
- # hyperfiddle (4)
- # jobs-discuss (1)
- # kaocha (5)
- # lsp (46)
- # meander (3)
- # off-topic (30)
- # polylith (10)
- # portal (9)
- # re-frame (5)
- # reitit (7)
- # releases (2)
- # ring (17)
- # sci (8)
- # shadow-cljs (6)
- # specter (1)
- # sql (1)
- # testing (9)
- # tools-deps (4)
- # vim (12)
you can't run react-native
in node
, so node targets won't work. I believe what jest does is replace any react-native
require with something else but not sure
I'd assume jest
somehow hooks itself into require
to do this. dunno how though. maybe its just a build tool, as in it preprocesses the code before running it
eg you could try running :node-test
with :js-options {:js-provider :shadow :keep-native-requires true :resolve {"react-native" {:target :npm :require "some-replacement"}}}
etc
not really recommended to do this but might be enough if you don't have too many other react-native dependencies
Yeah, that's what I tried and it didn't work. As soon as I add another react-native dependency, it fails with some cryptic errors like: Module not provided: @babel/runtime/helpers/interopRequireDefault
Is there a way to just do a recursive merge on the config? I want to add re-frame-10x by having a local config file and merging it via:
--config-merge re-frame-10x.edn
re-frame-10x.edn
{:builds
{:dev
{:devtools
{:preloads [day8.re-frame-10x.preload]}
:dev
{:compiler-options
{:closure-defines
{re-frame.trace.trace-enabled? true
day8.re-frame.tracing.trace-enabled? true}}}
:release
{:build-options
{:ns-aliases
{day8.re-frame.tracing day8.re-frame.tracing-stubs}}}}}}
But that doesn't work, i believe it inserts into the build level, but when i do that, my app doesn't start. so i assume it overwrites.