Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20b8b96
commit b79b1ca
Showing
8 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(ns logseq.graph-parser.nbb-test-runner | ||
"Nbb tests for graph-parser" | ||
(:require [cljs.test :as t] | ||
[logseq.graph-parser.mldoc :as gp-mldoc] | ||
[logseq.graph-parser.text :as text] | ||
; [logseq.graph-parser.text-test] | ||
[logseq.graph-parser.mldoc-test])) | ||
|
||
(defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m] | ||
(when-not (cljs.test/successful? m) | ||
(set! (.-exitCode js/process) 1))) | ||
|
||
;; run this function with: nbb-logseq -m logseq.test.nbb-test-runner/run-tests | ||
(defn run-tests [] | ||
;; This hack is the same as the one in frontend.format. This has to be in an nbb only | ||
;; ns since alter-var-root doesn't exist in cljs and nbb doesn't support set! yet | ||
#_:clj-kondo/ignore | ||
(alter-var-root #'gp-mldoc/parse-property (constantly text/parse-property)) | ||
(t/run-tests 'logseq.graph-parser.mldoc-test | ||
;; TODO: Enable when https://github.com/babashka/nbb/issues/187 works | ||
#_'logseq.graph-parser.text-test)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.