Open kitsu opened 8 years ago
This is pretty minor, but all my testing expressions lose their context div when I make them do async testing. That is the bit of descriptive text between blocks of test results. For Example:
testing
(ns foo.test.stuff (:require [cljs.core.async :as ca :refer [<! timeout]]) (:require-macros [devcards.core :as dc :refer [defcard]] [cljs.test :refer [is testing async]] [cljs.core.async.macros :as async-macros :refer [go]])) (dc/deftest working-context "###Context shown normally" (testing "Math identity works" (is (= 1 1)))) (dc/deftest async-context "###Loss of context when using async" (testing "Math identity works" (async done (go (<! (timeout 10)) (is (= 1 1)) (done)))))
The first renders with context (Math identity works), the second doesn't.
;; Relevant :dependencies [[org.clojure/clojurescript "1.8.51"] [org.clojure/core.async "0.2.374" :exclusions [org.clojure/tools.reader]] [devcards "0.2.1-7"]]
Yeah this is a thing ... I'm sure it can be fixed.
Any updates or should it be closed?
This is pretty minor, but all my
testing
expressions lose their context div when I make them do async testing. That is the bit of descriptive text between blocks of test results. For Example:The first renders with context (Math identity works), the second doesn't.