(deftest &form &env name & body)
Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you compose tests, you should also define a function named test-ns-hook; run-tests will call test-ns-hook instead of testing all vars.
Note: Actually, the test body goes in the :test metadata on the var, and the real function (the value of the var) calls test-var on itself.
When cljs.analyzer/load-tests is false, deftest is ignored.
Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you compose tests, you should also define a function named test-ns-hook; run-tests will call test-ns-hook instead of testing all vars. Note: Actually, the test body goes in the :test metadata on the var, and the real function (the value of the var) calls test-var on itself. When cljs.analyzer/*load-tests* is false, deftest is ignored.
(infer-externs-dot {:keys [form form-meta method field target-tag env prop tag]
:as ast}
{:keys [infer-externs] :as opts})
(invokeable-ns? alias env)
Returns true if ns is a required namespace and a JavaScript module that might be invokeable as a function.
Returns true if ns is a required namespace and a JavaScript module that might be invokeable as a function.
symbols known to be closureJS compliant namespaces
symbols known to be closureJS compliant namespaces
(resolve-var env sym)
(resolve-var env sym confirm)
Resolve a var. Accepts a side-effecting confirm fn for producing warnings about unresolved vars.
Resolve a var. Accepts a side-effecting confirm fn for producing warnings about unresolved vars.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close