File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bb
2
2
3
3
(ns test-doc
4
- (:require [helper.main :as main]
4
+ (:require [babashka.fs :as fs]
5
+ [helper.main :as main]
5
6
[helper.shell :as shell]
6
7
[lread.status-line :as status]))
7
8
19
20
(defn run-cljs-doc-tests []
20
21
(status/line :head " Running code block tests under ClojureScript" )
21
22
(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)
23
26
(spit opts-fname compile-opts)
24
27
(shell/command " clojure" " -M:test-common:test-docs:cljs:cljs-test"
25
28
" --compile-opts" opts-fname
26
29
" --dir" " target/test-doc-blocks/test"
27
- " --out" " target/cljsbuild/doc-tests " )))
30
+ " --out" out-dir )))
28
31
29
32
(defn -main [& args]
30
33
(when (main/doc-arg-opt args)
You can’t perform that action at this time.
0 commit comments