You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* run-tests: accept quoted ns symbols at the macro level + ns event
The macro now converts (quote my.ns) at the call site to a plain
"my.ns" string before emitting, so users can write the cljs.test
idiom (run-tests 'my.ns) without depending on squint's quoted-symbol
runtime support (which doesn't exist). The runtime fn keeps its
existing signatures.
run-vars-with-once-fixtures now brackets each ns's tests with
:begin-test-ns / :end-test-ns reports — the events were declared in
report's case but never fired. Reporters (and plain output) now
print "Testing my.ns" before each ns's run, matching cljs.test.
Smoke test gains a regression for the quoted-symbol macro path and
asserts the Testing lines appear in output. CHANGELOG updated with
the user-visible cljs.test entry.
* Add (async done body) macro for cljs.test parity
Adds core-async to the built-in test macros: (async done body)
expands to (js/Promise. (fn [done] body)). The deftest body returns
the Promise and test-var awaits it, so no ^:async marker on the
outer fn is needed. Lets users copy-paste cljs.test code that uses
the (async done ...) idiom without rewriting it.
Also added to builtin-refer-is-macro? so :refer [async] doesn't
emit a runtime import. Smoke test gets a regression. CHANGELOG and
TODO entries updated (#8 closed).
0 commit comments