Fork me on GitHub
#shadow-cljs
<
2019-11-30
>
polymeris13:11:40

I have builds targeting :browser-test and :karma . Is there some easy way to exclude some (heavy) tests from the browser test suite only? Ideally on a test-by-test basis, not ns.

polymeris14:11:58

nvm, just put the heavy tests in a separate ns and filtered with ns regexes

thheller14:11:38

yeah the ns filternig is rather limited currently

polymeris14:11:05

Unrelated, but I use to have to monkey-patch nextTick: (gobj/set shadow-js/process "nextTick" goog.async.nextTick). Updated shadow-cljs from 2.8.36 to 76 and shadow-js/process is now undefined, however I remove the monkey patch and the tests pass. Did that implementation change or are my tests broken?

thheller14:11:03

the implementation changed yes. now uses the full browser process polyfill

polymeris14:11:07

Good to hear, thanks!

sheluchin18:11:14

vim-salve says it supports Leiningen, Boot, and the Clojure CLI. Does that mean that if I use deps.edn with shadow-cljs, vim-salve will support it too? I'm presuming that to be the case based on this bit from the docs: > The new deps.edn can also be used to manage your :dependencies and :source-paths instead of using the built-in methods or lein. All shadow-cljs commands will then be launched via the new clojure utility instead. https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn

thheller18:11:03

sorry don't know what vim-salve is

thheller18:11:44

yes I looked at that. still no clue what it does.

thheller18:11:27

if its just about starting a clojure jvm then yes deps.edn will work and you can use shadow-cljs via that

sheluchin18:11:52

vim-salve is supposed to be helpful for setting classpath in vim, so that tools like vim-fireplace can better interact with the REPL to do things like reading docstrings and navigating to source. I'm fairly new to Clojure and trying to get my editor running smoothly, but still getting a few errors here and there. One thing I notice is that npx shadow-cljs classpath does not list the source path entries that shadow-cljs info produces. Is that normal? My understanding is that the classpath should be a combination of the given filesystem directory and .jar file entries, so if I have :source-paths ["src/main" "src/test"], I expect them both to be in the classpath.

thheller18:11:34

do you use :deps or not?

thheller18:11:46

if you do :source-paths and :dependencies in shadow-cljs.edn are ignored

sheluchin18:11:59

Yes, {:deps {com.fulcrologic/fulcro {:mvn/version "3.0.1"}}.

thheller18:11:16

the you configure :paths in deps.edn

sheluchin18:11:04

Ah, sorry, this is from shadow-cljs.edn: :deps {:aliases [:dev]}.

sheluchin18:11:28

Okay, I will try that. Thanks very much.