Skip to content

Commit 2c9a91b

Browse files
committed
tests: correct test-doc cljs opts generation
1 parent 79b7cf1 commit 2c9a91b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

script/test_doc.clj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bb
22

33
(ns test-doc
4-
(:require [helper.main :as main]
4+
(:require [babashka.fs :as fs]
5+
[helper.main :as main]
56
[helper.shell :as shell]
67
[lread.status-line :as status]))
78

@@ -19,12 +20,14 @@
1920
(defn run-cljs-doc-tests []
2021
(status/line :head "Running code block tests under ClojureScript")
2122
(let [compile-opts {:warnings {:fn-deprecated false :single-segment-namespace false}}
22-
opts-fname "target/cljsbuild/test/doc-tests-opts.edn"]
23+
out-dir "target/cljsbuild/doc-tests"
24+
opts-fname (fs/file out-dir "doc-tests-opts.edn")]
25+
(fs/create-dirs out-dir)
2326
(spit opts-fname compile-opts)
2427
(shell/command "clojure" "-M:test-common:test-docs:cljs:cljs-test"
2528
"--compile-opts" opts-fname
2629
"--dir" "target/test-doc-blocks/test"
27-
"--out" "target/cljsbuild/doc-tests")))
30+
"--out" out-dir)))
2831

2932
(defn -main [& args]
3033
(when (main/doc-arg-opt args)

0 commit comments

Comments
 (0)