diff options
| author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-08-22 14:55:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 21:55:17 +0000 |
| commit | f60640267776638d4699fbf05095dc6d1a9016f0 (patch) | |
| tree | cbe7d284738cf1aed511f3ad3432444ceab573b6 /tests | |
| parent | b6475d0f36a0476d95f1a0749f9db33b5aa73ecf (diff) | |
fix(install): Use relative symlinks in deno install (#25164)
Fixes https://github.com/denoland/deno/issues/25161
Diffstat (limited to 'tests')
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/specs/install/move_after_install/__test__.jsonc b/tests/specs/install/move_after_install/__test__.jsonc new file mode 100644 index 000000000..1699e9f6f --- /dev/null +++ b/tests/specs/install/move_after_install/__test__.jsonc @@ -0,0 +1,28 @@ +{ + "tempDir": true, + "envs": { + "DENO_FUTURE": "1" + }, + "steps": [ + { + "cwd": "./test-project", + "args": "install", + "output": "[WILDCARD]" + }, + { + "cwd": "./test-project", + "args": "run -A main.mjs", + "output": "5\n" + }, + { + "commandName": "mv", + "args": "test-project test-project-moved", + "output": "" + }, + { + "cwd": "./test-project-moved", + "args": "run -A main.mjs", + "output": "5\n" + } + ] +} diff --git a/tests/specs/install/move_after_install/test-project/main.mjs b/tests/specs/install/move_after_install/test-project/main.mjs new file mode 100644 index 000000000..1beed6ef4 --- /dev/null +++ b/tests/specs/install/move_after_install/test-project/main.mjs @@ -0,0 +1,4 @@ +import { getValue, setValue } from "@denotest/esm-basic"; + +setValue(5); +console.log(getValue()); diff --git a/tests/specs/install/move_after_install/test-project/package.json b/tests/specs/install/move_after_install/test-project/package.json new file mode 100644 index 000000000..54ca824d6 --- /dev/null +++ b/tests/specs/install/move_after_install/test-project/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@denotest/esm-basic": "*" + } +} |
