Fork me on GitHub
#clojurescript
<
2022-08-30
>
zimablue13:08:19

can one access the javascript "arguments" property from clojure? js/arguments tells me it's undefined https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments

p-himik13:08:37

(js-arguments).

zimablue13:08:06

Is that a period after the bracket?

p-himik13:08:16

But it's outside of the code block, yeah - it's just my habit of ending statements properly. :)

šŸ˜€ 1
šŸ˜ 1
zimablue14:08:01

sorry I was afk, thanks it worked!

šŸ‘ 1
martinklepsch16:08:42

in a cljs.test fixture is there a way to get the name of the var under test? Iā€™d like to capture how long different tests take to execute

colinkahn18:08:05

I would expect this to be something to look for in whatever test runner you're using. I know kaocha has a profiling plugin that will output test times (I've only used the Clojure version though, not in ClojureScript).

āž• 1
lread21:08:27

I was curious about that too at one point. Test reporters do have access to the test name if that helps. Clojure example (which I assume applies also for cljs): https://github.com/clj-commons/etaoin/blob/6d615d02895e7250f936688f280f0dedc4e0a6b0/test/etaoin/test_report.clj#L9-L13