Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Aug 24, 2018
1 parent 148bc01 commit 16db91d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dev/user.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
(ns user
(:require
;; this unfortunately precludes testing against nrepl/nrepl
;; better to have this code as a script to include during development?
[clojure.tools.nrepl]
[cider.piggieback :as pback]
[cljs.repl :as repl]
[cljs.repl.nashorn :as nash]
[cljs.repl.node :as node]))

(require '[cider.piggieback :as pback])

(defn cljs []
(pback/cljs-repl (nash/repl-env :verbose true :repl-verbose true)))

Expand Down
13 changes: 10 additions & 3 deletions test/cider/piggieback_test.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
(ns cider.piggieback-test
(:require [cider.piggieback :as pb]
[nrepl.core :as nrepl]
[nrepl.server :as server])
(:use clojure.test))

(if (find-ns 'clojure.tools.nrepl)
(require
'[clojure.tools.nrepl :as nrepl]
'[clojure.tools.nrepl.server :as server])
(require
'[nrepl.core :as nrepl]
'[nrepl.server :as server]))

(require '[cider.piggieback :as pb])

(def ^:dynamic *server-port* nil)
(def ^:dynamic *session*)

Expand Down

0 comments on commit 16db91d

Please sign in to comment.