     (let [ctx {}
 
           {:keys [resource-name] :as rc1}
-          (npm/find-resource x nil "file-over-dir/foo" ctx)]
+          (find-npm-resource x nil "file-over-dir/foo" ctx)]
 
       (is rc1)
       (is (string? resource-name))

(deftest test-relative-file
  (with-npm [x {}]
    (let [{:keys [ns resource-name] :as rc}
          (npm/find-resource x
            (-> (io/file ".")
                (.getCanonicalFile))
            "./src/test/foo" {})]

(deftest test-resolve-to-global
  (with-npm [x {}]
    (let [{:keys [ns type requires source] :as rc}
          (find-npm-resource x nil "react"
            {:target :browser
             :resolve
             {"react" {:target :global
