This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-15
Channels
- # alda (1)
- # beginners (24)
- # biff (9)
- # calva (55)
- # cherry (1)
- # clj-kondo (36)
- # cljs-dev (3)
- # clojure (37)
- # clojure-austin (2)
- # clojure-brasil (1)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-spec (3)
- # clojure-uk (1)
- # community-development (6)
- # core-typed (1)
- # datalevin (5)
- # datomic (28)
- # emacs (14)
- # events (1)
- # gratitude (9)
- # hyperfiddle (27)
- # instaparse (3)
- # joker (16)
- # lsp (89)
- # malli (24)
- # missionary (2)
- # nbb (5)
- # off-topic (59)
- # re-frame (12)
- # reitit (17)
- # releases (4)
- # sci (14)
- # spacemacs (1)
- # squint (7)
- # xtdb (41)
Continuing what I started with tests, https://github.com/babashka/sci.configs/blob/64342798713d355244d86ee6c311725d0c58e682/src/sci/configs/cljs/test.cljs#L1077, it doesn't seem like that is working as expected. The raw all-ns value is:
"gracie.projects2" "cljs-bean.core" "tests.cli" "user" "promesa.protocols" "nbb.core" "promesa.core" "nbb.classpath" "edamame.core" "framework.env" "cljs.test" "goog.object" "babashka.cli" "clojure.core" "clojure.set" "framework.queue" "cljs.pprint" "clojure.main" "nbb.error" "gracie.queue" "clojure.edn" "notion.api" "tests.gracie.test-queue" "clojure.repl" "clojure.string" "framework.utils" "sci.core" "cljs.reader" "clojure.walk" "clojure.template")
Then trying to use (t/run-all-tests #"tests\.gracie")
should match tests.gracie.test-queue
However, that always returns an empty list. That can be reproduced in the repl by manually filtering the results of (all-ns)
this code comes from here: https://github.com/clojure/clojurescript/blob/0a5f5edcc1c00eecceb6d32c478e66083a30503b/src/main/cljs/cljs/test.cljc#L334
I think (all-ns)
should be (map str (keys (all-ns)))
and then just apply re-matches over those strings
Actually it might be working, seems re-matches requires the pattern to match the full string