diff options
Diffstat (limited to 'tests/specs/npm/local_dir_resolves_symlinks')
5 files changed, 48 insertions, 0 deletions
diff --git a/tests/specs/npm/local_dir_resolves_symlinks/__test__.jsonc b/tests/specs/npm/local_dir_resolves_symlinks/__test__.jsonc new file mode 100644 index 000000000..a846fdcb4 --- /dev/null +++ b/tests/specs/npm/local_dir_resolves_symlinks/__test__.jsonc @@ -0,0 +1,14 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "install", + "output": "install.out" + }, + { + "args": "run -A index.js", + "output": "index.out", + "exitCode": 0 + } + ] +} diff --git a/tests/specs/npm/local_dir_resolves_symlinks/index.js b/tests/specs/npm/local_dir_resolves_symlinks/index.js new file mode 100644 index 000000000..72d8913f5 --- /dev/null +++ b/tests/specs/npm/local_dir_resolves_symlinks/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/index.out b/tests/specs/npm/local_dir_resolves_symlinks/index.out new file mode 100644 index 000000000..7550ee132 --- /dev/null +++ b/tests/specs/npm/local_dir_resolves_symlinks/index.out @@ -0,0 +1 @@ +true it works diff --git a/tests/specs/npm/local_dir_resolves_symlinks/install.out b/tests/specs/npm/local_dir_resolves_symlinks/install.out new file mode 100644 index 000000000..0c15b2a0e --- /dev/null +++ b/tests/specs/npm/local_dir_resolves_symlinks/install.out @@ -0,0 +1,23 @@ +[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] diff --git a/tests/specs/npm/local_dir_resolves_symlinks/package.json b/tests/specs/npm/local_dir_resolves_symlinks/package.json new file mode 100644 index 000000000..4c974022e --- /dev/null +++ b/tests/specs/npm/local_dir_resolves_symlinks/package.json @@ -0,0 +1,7 @@ +{ + "name": "foo", + "type": "module", + "dependencies": { + "define-properties": "^1.2.0" + } +} |