shadow-cljs

hadils 2025-08-04T16:18:20.967709Z

Good morning! I notice that :node-mobule watch and REPL do not seem to work for me. I am trying get Jest to work. Is there a better target? Or something I can do to get this to work? Thanks in advance!

thheller 2025-08-04T16:21:10.190289Z

they work fine, but they are not "active" by default. :npm-module does not have clearly defined "entries", so the necessary code needs to be loaded manually

thheller 2025-08-04T16:21:47.516149Z

I don't know or use jest, so no clue how you'd tell it do this for you

hadils 2025-08-04T16:22:03.771999Z

Thank you, @thheller!

thheller 2025-08-04T16:23:34.905829Z

the namespace that needs to get loaded is shadow.cljs.devtools.client.node with :runtime :node in the build config (in case this is actually running in node)

thheller 2025-08-04T16:24:33.631279Z

but if you just want a REPL you can just use node-repl alone. it doesn't need to be tied to a build or anything

thheller 2025-08-04T16:25:01.206759Z

I believe jest is not setup for this whole REPL/hot-reload world, so probably doesn't make much sense trying to force it