Skip to content

Commit c244759

Browse files
committed
CLJS-1085: Allow to pass test environment to cljs.test/run-all-tests
1 parent 29655a2 commit c244759

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/clj/cljs/test.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@
294294
Optional argument is a regular expression; only namespaces with
295295
names matching the regular expression (with re-matches) will be
296296
tested."
297-
([] `(cljs.test/run-all-tests nil))
298-
([re]
299-
`(cljs.test/run-tests (cljs.test/empty-env)
297+
([] `(cljs.test/run-all-tests nil (cljs.test/empty-env)))
298+
([re] `(cljs.test/run-all-tests ~re (cljs.test/empty-env)))
299+
([re env]
300+
`(cljs.test/run-tests ~env
300301
~@(map
301302
(fn [ns] `(quote ~ns))
302303
(cond->> (ana-api/all-ns)

0 commit comments

Comments
 (0)