Skip to content

Commit 935e6ec

Browse files
authored
Merge pull request #328 from lambdaisland/alys/update-preload-docs
Update preload docs
2 parents c3b4bfb + 176e6a2 commit 935e6ec

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

doc/08_plugins.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ Preload namespaces. Useful for loading specs and installing instrumentation.
162162
:kaocha.plugin.preloads/ns-names [my.acme.specs]}
163163
```
164164

165+
This plugin works for only Clojure namespaces. For ClojureScript namespaces, use
166+
the [`:preloads`
167+
functionality](https://clojurescript.org/reference/compiler-options#preloads) of the
168+
ClojureScript compiler.
169+
165170
## Debug
166171

167172
Inspect Kaocha's process by printing out a message at every single hook. This is

src/kaocha/plugin/preloads.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
44
Useful for preloading specs and other instrumentation.
55
6-
This calls `require` on the given namespace names before loading any tests.
7-
Only works for Clojure namespaces, for ClojureScript use the :preloads
8-
functionality of the ClojureScript compiler."
6+
This plugin calls `require` on the given namespace names before loading any
7+
tests.
8+
9+
This plugin works for only Clojure namespaces. For ClojureScript namespaces,
10+
use the :preloads functionality of the ClojureScript compiler."
911
(:require [kaocha.plugin :refer [defplugin]]))
1012

1113
(defplugin kaocha.plugin/preloads

0 commit comments

Comments
 (0)