Browse Source

don't validate db for yarn test

Tienson Qin 2 years ago
parent
commit
621d88f17c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/modules/outliner/datascript.cljs

+ 1 - 1
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)))