Skip to content

Commit e7619af

Browse files
committed
document deftest ^:async support and behavior
1 parent e3ce500 commit e7619af

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/cljs/cljs/test.cljc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@
233233
should also define a function named test-ns-hook; run-tests will
234234
call test-ns-hook instead of testing all vars.
235235
236+
If the test is marked ^:async, the body of the test is emitted as a
237+
host async function with an implicit try/catch. As with synchronous
238+
test cases, uncaught exceptions will be reported as failures.
239+
236240
Note: Actually, the test body goes in the :test metadata on the var,
237241
and the real function (the value of the var) calls test-var on
238242
itself.

0 commit comments

Comments
 (0)