Explorar o código

don't validate db for yarn test

Tienson Qin %!s(int64=2) %!d(string=hai) anos
pai
achega
621d88f17c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)))