Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
cljs.test may report summary before all async tests complete
Key details
Description
cljs.test may report summary before all async tests complete.
E.g, if you have an async test that looks like this:
cljs.testmay report summary before all async tests complete.E.g, if you have an async test that looks like this:
(deftest a-test (async done (testing "a slow async test" (go (<! (timeout 1000)) (is (= 0 1)) (done)))))then the report output may look like this:
Ran 1 tests containing 0 assertions. 0 failures, 0 errors. <1 second elapses> FAIL in () (cljs_test_with_slow_async_example/core_test.js:201:49) expected: (= 0 1) actual: (not (= 0 1))Minimal repo: https://github.com/jenanwise/cljs-test-with-slow-async-example