     (let [ctx {}
 
           {:keys [file] :as rc1}
-          (npm/find-resource x nil "pkg-a/nested/thing" ctx)
+          (find-npm-resource x nil "pkg-a/nested/thing" ctx)
 
           {:keys [ns resource-name] :as rc2}
-          (npm/find-resource x file ".." ctx)]
+          (find-npm-resource x file ".." ctx)]
 
       (is rc1)
       (is rc2)

(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-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)
