summaryrefslogtreecommitdiff
path: root/tests/specs/npm/require_resolve_bad_paths_global_cache/main.ts
blob: c3b236c8f855ead7e98a61968f3670d74e2b6d29 (plain)
1
2
3
4
5
6
7
8
import "npm:@denotest/esm-basic";
import { resolve } from "npm:@denotest/require-resolve";

console.log(resolve("@denotest/esm-basic", {
  // when using the global cache, it should fallback to resolving bare
  // specifiers with the global cache when it can't find it via the paths
  paths: ["/home"],
}));