mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 11:22:44 +00:00
test(rtc): launch two clients at the same time
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
[clojure.java.io :as io]
|
||||
[clojure.pprint :as pp]
|
||||
[clojure.edn :as edn]
|
||||
[clojure.data :as data]))
|
||||
[clojure.data :as data]
|
||||
[clojure.core.async :as async]))
|
||||
|
||||
(defn test
|
||||
"Run tests. Pass args through to cmd 'yarn cljs:run-test'"
|
||||
@@ -24,6 +25,14 @@
|
||||
(dev-lint/dev)
|
||||
(test "-e" "long" "-e" "fix-me"))
|
||||
|
||||
(defn rtc-e2e-test
|
||||
"Run karma rtc-e2e-test"
|
||||
[]
|
||||
(let [seed (hash (rand))
|
||||
c1 (async/go (shell (str "npx karma start --testvar=client1 --single-run --seed=" seed)))
|
||||
c2 (async/go (shell (str "npx karma start --testvar=client2 --single-run --seed=" seed)))]
|
||||
(prn :exit-code :client1 (:exit (async/<!! c1)) :client2 (:exit (async/<!! c2)))))
|
||||
|
||||
(defn gen-malli-kondo-config
|
||||
"Generate clj-kondo type-mismatch config from malli schema
|
||||
.clj-kondo/metosin/malli-types/config.edn"
|
||||
|
||||
Reference in New Issue
Block a user