summaryrefslogtreecommitdiff
path: root/tests/specs/task/package_json_node_modules_dir_none
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/task/package_json_node_modules_dir_none')
-rw-r--r--tests/specs/task/package_json_node_modules_dir_none/__test__.jsonc6
-rw-r--r--tests/specs/task/package_json_node_modules_dir_none/bin.out8
-rw-r--r--tests/specs/task/package_json_node_modules_dir_none/deno.json3
-rw-r--r--tests/specs/task/package_json_node_modules_dir_none/package.json9
4 files changed, 26 insertions, 0 deletions
diff --git a/tests/specs/task/package_json_node_modules_dir_none/__test__.jsonc b/tests/specs/task/package_json_node_modules_dir_none/__test__.jsonc
new file mode 100644
index 000000000..21d9d73ba
--- /dev/null
+++ b/tests/specs/task/package_json_node_modules_dir_none/__test__.jsonc
@@ -0,0 +1,6 @@
+{
+ "tempDir": true,
+ "args": "task echo",
+ "output": "bin.out",
+ "exitCode": 0
+}
diff --git a/tests/specs/task/package_json_node_modules_dir_none/bin.out b/tests/specs/task/package_json_node_modules_dir_none/bin.out
new file mode 100644
index 000000000..c86261d9e
--- /dev/null
+++ b/tests/specs/task/package_json_node_modules_dir_none/bin.out
@@ -0,0 +1,8 @@
+[UNORDERED_START]
+Download http://localhost:4260/@denotest/bin
+Download http://localhost:4260/@denotest/bin/1.0.0.tgz
+Download http://localhost:4260/@denotest/bin/0.5.0.tgz
+[UNORDERED_END]
+Task echo deno eval 'console.log(1)' && cli-esm hi
+1
+hi
diff --git a/tests/specs/task/package_json_node_modules_dir_none/deno.json b/tests/specs/task/package_json_node_modules_dir_none/deno.json
new file mode 100644
index 000000000..38af4024b
--- /dev/null
+++ b/tests/specs/task/package_json_node_modules_dir_none/deno.json
@@ -0,0 +1,3 @@
+{
+ "nodeModulesDir": "none"
+}
diff --git a/tests/specs/task/package_json_node_modules_dir_none/package.json b/tests/specs/task/package_json_node_modules_dir_none/package.json
new file mode 100644
index 000000000..713a9dc5b
--- /dev/null
+++ b/tests/specs/task/package_json_node_modules_dir_none/package.json
@@ -0,0 +1,9 @@
+{
+ "scripts": {
+ "echo": "deno eval 'console.log(1)' && cli-esm hi"
+ },
+ "dependencies": {
+ "@denotest/bin": "0.5",
+ "other": "npm:@denotest/bin@1.0"
+ }
+}