summaryrefslogtreecommitdiff
path: root/tests/specs/npm/local_dir_resolves_symlinks_auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/npm/local_dir_resolves_symlinks_auto')
-rw-r--r--tests/specs/npm/local_dir_resolves_symlinks_auto/__test__.jsonc10
-rw-r--r--tests/specs/npm/local_dir_resolves_symlinks_auto/deno.json3
-rw-r--r--tests/specs/npm/local_dir_resolves_symlinks_auto/index.js3
-rw-r--r--tests/specs/npm/local_dir_resolves_symlinks_auto/index.out24
-rw-r--r--tests/specs/npm/local_dir_resolves_symlinks_auto/package.json7
5 files changed, 47 insertions, 0 deletions
diff --git a/tests/specs/npm/local_dir_resolves_symlinks_auto/__test__.jsonc b/tests/specs/npm/local_dir_resolves_symlinks_auto/__test__.jsonc
new file mode 100644
index 000000000..78cd876f2
--- /dev/null
+++ b/tests/specs/npm/local_dir_resolves_symlinks_auto/__test__.jsonc
@@ -0,0 +1,10 @@
+{
+ "tempDir": true,
+ "steps": [
+ {
+ "args": "run -A index.js",
+ "output": "index.out",
+ "exitCode": 0
+ }
+ ]
+}
diff --git a/tests/specs/npm/local_dir_resolves_symlinks_auto/deno.json b/tests/specs/npm/local_dir_resolves_symlinks_auto/deno.json
new file mode 100644
index 000000000..fbd70ec48
--- /dev/null
+++ b/tests/specs/npm/local_dir_resolves_symlinks_auto/deno.json
@@ -0,0 +1,3 @@
+{
+ "nodeModulesDir": "auto"
+}
diff --git a/tests/specs/npm/local_dir_resolves_symlinks_auto/index.js b/tests/specs/npm/local_dir_resolves_symlinks_auto/index.js
new file mode 100644
index 000000000..72d8913f5
--- /dev/null
+++ b/tests/specs/npm/local_dir_resolves_symlinks_auto/index.js
@@ -0,0 +1,3 @@
+import * as d from "define-properties";
+
+console.log(typeof d.default === "function", "it works");
diff --git a/tests/specs/npm/local_dir_resolves_symlinks_auto/index.out b/tests/specs/npm/local_dir_resolves_symlinks_auto/index.out
new file mode 100644
index 000000000..0cb3a1593
--- /dev/null
+++ b/tests/specs/npm/local_dir_resolves_symlinks_auto/index.out
@@ -0,0 +1,24 @@
+[UNORDERED_START]
+Download http://localhost:4260/define-properties
+Download http://localhost:4260/has-property-descriptors
+Download http://localhost:4260/object-keys
+Download http://localhost:4260/get-intrinsic
+Download http://localhost:4260/function-bind
+Download http://localhost:4260/has
+Download http://localhost:4260/has-symbols
+Download http://localhost:4260/define-properties/define-properties-1.2.0.tgz
+Download http://localhost:4260/has-property-descriptors/has-property-descriptors-1.0.0.tgz
+Download http://localhost:4260/object-keys/object-keys-1.1.1.tgz
+Download http://localhost:4260/get-intrinsic/get-intrinsic-1.2.0.tgz
+Download http://localhost:4260/has-symbols/has-symbols-1.0.3.tgz
+Download http://localhost:4260/has/has-1.0.3.tgz
+Download http://localhost:4260/function-bind/function-bind-1.1.1.tgz
+Initialize has@1.0.3
+Initialize define-properties@1.2.0
+Initialize has-property-descriptors@1.0.0
+Initialize object-keys@1.1.1
+Initialize get-intrinsic@1.2.0
+Initialize function-bind@1.1.1
+Initialize has-symbols@1.0.3
+[UNORDERED_END]
+true it works
diff --git a/tests/specs/npm/local_dir_resolves_symlinks_auto/package.json b/tests/specs/npm/local_dir_resolves_symlinks_auto/package.json
new file mode 100644
index 000000000..4c974022e
--- /dev/null
+++ b/tests/specs/npm/local_dir_resolves_symlinks_auto/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "foo",
+ "type": "module",
+ "dependencies": {
+ "define-properties": "^1.2.0"
+ }
+}