fix: graph-parser cljs tests

This commit is contained in:
Gabriel Horner
2026-02-11 11:36:32 -05:00
parent e7b5c9a6b6
commit e5c0cd036b

View File

@@ -1,6 +1,5 @@
(ns ^:node-only logseq.graph-parser.exporter-test
(:require ["fs" :as fs]
["fs/promises" :as fsp]
["path" :as node-path]
[cljs.test :refer [are deftest is testing]]
[clojure.set :as set]
@@ -130,7 +129,8 @@
(let [abs-path (if (node-path/isAbsolute path)
path
(node-path/resolve file-graph-dir path))]
(fsp/stat abs-path)))
;; inline require to allow cljs tests to run
(.stat (js/require "fs/promises") abs-path)))
:<read-and-copy-asset (fn [file *assets buffer-handler]
(<read-and-copy-asset file *assets buffer-handler assets))}
(select-keys options [:verbose]))]