From 621d88f17c76bdfa8242e42637f67ce3a50f0f4a Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 8 Oct 2023 19:18:26 +0800 Subject: [PATCH] don't validate db for yarn test --- src/main/frontend/modules/outliner/datascript.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/modules/outliner/datascript.cljs b/src/main/frontend/modules/outliner/datascript.cljs index e38aadbae..1f85c9c9c 100644 --- a/src/main/frontend/modules/outliner/datascript.cljs +++ b/src/main/frontend/modules/outliner/datascript.cljs @@ -171,7 +171,7 @@ rs (db/transact! repo txs (assoc opts :outliner/transact? true)) tx-id (get-tx-id rs)] ;; TODO: disable this when db is stable - (when config/dev? (validate-db! rs)) + (when (and config/dev? (not util/node-test?)) (validate-db! rs)) (state/update-state! :history/tx->editor-cursor (fn [m] (assoc m tx-id before-editor-cursor)))