This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-20
Channels
- # beginners (94)
- # boot (8)
- # cider (21)
- # cljs-dev (3)
- # cljsjs (5)
- # cljsrn (10)
- # clojure (167)
- # clojure-italy (4)
- # clojure-norway (1)
- # clojure-russia (9)
- # clojure-spec (25)
- # clojure-uk (29)
- # clojurescript (20)
- # cursive (12)
- # datomic (55)
- # emacs (10)
- # fulcro (16)
- # graphql (1)
- # hoplon (18)
- # lein-figwheel (30)
- # off-topic (259)
- # onyx (8)
- # other-languages (13)
- # re-frame (1)
- # reagent (62)
- # ring (8)
- # ring-swagger (28)
- # shadow-cljs (187)
- # spacemacs (15)
- # specter (2)
- # testing (12)
- # tools-deps (38)
Hi every one!
I was looking for a tool that performs test-coverage in clojurescript that targets nodejs. I have searched on google but I have found nothing: is there such an instrument or I have to use tools already provided for javascript such as istanbuljs/nyc
?
Thanks!
You can use doo as your test runner which comes with istanbul support - https://github.com/bensu/doo#measuring-coverage-with-istanbul
Doo can be used with karma framework that integrates Istanbull. Karma is used to target browsers, while my project targets Nodejs, I don't know if I can use Karma anyway.. :thinking_face:
Hi all. Does anyone know why the equivalent of clojure.core/extend is not in cljs? And could it be etc? Sorry if this question has come up before... I failed to Google it. Thanks
This example of extend-type might help
Hi Oliver, thanks for the reply but I don't see how that would help me? I am asking specifically about https://clojuredocs.org/clojure.core/extend not being in cljs
Anyone who wants to submit a talk proposal for Clojure eXchange 2018, the link is here - just scroll up a bit to find the Google Form embedded in the page: https://skillsmatter.com/conferences/10459-clojure-exchange-2018#get_involved
Hoplon Code Walkthrough happening in #hoplon
Is there a reason re-groups
isn’t in cljs
? I’ve managed to reimplement it sufficiently for my purposes, but I’m curious as it’s in clojure.core
.
@folcon My speculation would be that, in Clojure, it is defined to take and return Java-specific classes, so there is no direct translation to ClojureScript.
That may be the case, I was just puzzled as other regex parts exist, such as re-matches
and re-find
.
Right, re-matches
and re-find
take and return primitives that exist in Clojure and ClojureScript.
Acutally, cljs.core/re-find
omits the single-arity version, probably for the same rationale.
Background: building CLJS app with figwheel, getting “Use of undeclared Var cljs.reader/read-string”. Seems benign because the call works. Is there anyway to suppress that warning? I hate warnings. 🙂
Oh wow: “Figwheel: Not loading code with warnings - public/js/out/aghire/user_annotations.js”. Say it ain’t so!!! 🙂
@hiskennyness It works because cljs.reader is accidentally loaded by some other namespace in your program. If you add (require [cljs.reader])
it will resolve the warning and also mean that your namespace will work even if something else doesn't load cljs.reader
It also affords you the opportunity to alias the namespace (e.g. (require [cljs.reader :as reader])
) so that you don't have to invoke read string with the full namespace (reader/read-string ...)
vs (cljs.reader/read-string ...)
Wow, @aredington_clojurians! I cannot believe I never ran into this before. Thx!