summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/install/move_after_install/__test__.jsonc28
-rw-r--r--tests/specs/install/move_after_install/test-project/main.mjs4
-rw-r--r--tests/specs/install/move_after_install/test-project/package.json5
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": "*"
+ }
+}