This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit e2fba5d committed Mar 10, 2024 · 63 / 63
1 parent 95ce24b commit e2fba5d Copy full SHA for e2fba5d
File tree 4 files changed +11
-4
lines changed
src/cider/nrepl/middleware
test/clj/cider/nrepl/middleware
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ ## Bugs fixed
6
+
7
+ * [ #854 ] ( https://github.com/clojure-emacs/cider-nrepl/pull/854 ) : fix cider.clj-reload/reload-all and improve its test
8
+
5
9
## 0.46.0 (2024-0305)
6
10
7
11
### New features
Original file line number Diff line number Diff line change 19
19
~(with-meta '[org.clojure/tools.namespace " 1.3.0" ]
20
20
; ; :cognitest uses tools.namespace, so we cannot inline it while running tests.
21
21
{:inline-dep (not= " true" (System/getenv " SKIP_INLINING_TEST_DEPS" ))})
22
- ^:inline-dep [io.github.tonsky/clj-reload " 0.4.0 " ]
22
+ ^:inline-dep [io.github.tonsky/clj-reload " 0.4.1 " ]
23
23
^:inline-dep [org.clojure/tools.trace " 0.7.11" ]
24
24
^:inline-dep [org.clojure/tools.reader " 1.3.6" ]
25
25
[mx.cider/logjam " 0.3.0" ]]
Original file line number Diff line number Diff line change 37
37
reload (user-reload 'reload reload/reload)
38
38
unload (user-reload 'unload reload/unload)]
39
39
(cond
40
- (:all msg) (reload (assoc opts :all true ))
40
+ (:all msg) (reload (assoc opts :only :all ))
41
41
(:clear msg) (unload opts)
42
42
:else (reload opts))))
43
43
Original file line number Diff line number Diff line change 2
2
(:require
3
3
[cider.nrepl.middleware.reload :as rl]
4
4
[cider.nrepl.test-session :as session]
5
+ [clojure.string :as str]
5
6
[clojure.test :refer :all ]))
6
7
7
8
(use-fixtures :each session/session-fixture)
33
34
34
35
(deftest reload-all-op-test
35
36
(testing " reload-all op works"
36
- (let [response (session/message {:op " cider.clj-reload/reload-all" })]
37
- (is (seq (:progress response)))
37
+ (let [response (session/message {:op " cider.clj-reload/reload-all" })
38
+ progress-str (:progress response)]
39
+ (is (str/includes? progress-str " Unloading cider.nrepl.middleware.util.meta-test" ))
40
+ (is (str/includes? progress-str " Loading cider.nrepl.middleware.util.meta-test" ))
38
41
(is (= #{" done" " ok" } (:status response))))))
39
42
40
43
(deftest reload-clear-op-test
You can’t perform that action at this time.
0 commit comments