don't validate db for yarn test

pull/10438/head
Tienson Qin 2023-10-08 19:18:26 +08:00
parent 307258343e
commit 621d88f17c
1 changed files with 1 additions and 1 deletions

View File

@ -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)))