javascript

mathpunk 2019-03-20T22:37:37.001400Z

I've been thinking about taking control over some Jasmine tests with ClojureScript. But the spec files have names in them --- describe, it, beforeAll, etc --- that aren't imported into the file.

mathpunk 2019-03-20T22:38:12.002100Z

First, I'm not totally sure how that works. Something to do with JavaScript having a global namespace, I guess?

mathpunk 2019-03-20T22:38:44.002800Z

Second, would it be possible to require that code into a CLJS namespace? Would I have to define those names somehow?

mathpunk 2019-03-20T22:39:28.003800Z

I haven't done any experimentation around this --- I figured I should understand these "magic words" first