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.
First, I'm not totally sure how that works. Something to do with JavaScript having a global namespace, I guess?
Second, would it be possible to require that code into a CLJS namespace? Would I have to define those names somehow?
I haven't done any experimentation around this --- I figured I should understand these "magic words" first