Skip to content

Commit ac72e8a

Browse files
committed
Skip concurrent-mode test on react 18
1 parent 78a151d commit ac72e8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/reagenttest/testreagent.cljs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,8 +1610,10 @@
16101610
[:div.asd.xyz {:class "bar"}]
16111611
compiler)))))
16121612

1613-
(deftest ^:dom react-18-test
1614-
(when (>= (js/parseInt react/version) 18)
1613+
(deftest ^:dom react-concurrent-mode-test
1614+
;; 18 has this API, but skip on those tests, because calling
1615+
;; rdomc/render once, will setup react-flush for concurrent mode.
1616+
(when (>= (js/parseInt react/version) 19)
16151617
(let [div (.createElement js/document "div")
16161618
root (rdomc/create-root div)
16171619
i (r/atom 0)

0 commit comments

Comments
 (0)