             [clojure.pprint :refer (pprint)]
             [clojure.java.io :as io]
             [shadow.build.npm :as npm]
+            [shadow.build.resolve :refer (find-npm-resource)]
             [shadow.cljs.devtools.server.npm-deps :as npm-deps]
             [shadow.cljs.util :as util]))
 

(deftest test-resolve-to-file
  (with-npm [x {}]
    (let [{:keys [ns resource-name] :as rc}
          (npm/find-resource x nil "react"
            {:mode :release
             :resolve
             {"react" {:target :file

(deftest test-browser-override
  (with-npm [x {}]
    (let [{:keys [resource-name ns file package-name] :as rc}
          (find-npm-resource x nil "pkg-a" {})]

      ;; has browser override for index -> index-browser
      (is rc)
