summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/info/byonm/__test__.jsonc11
-rw-r--r--tests/specs/info/byonm/deno.json6
-rw-r--r--tests/specs/info/byonm/info.out1
-rw-r--r--tests/specs/info/byonm/package.json5
4 files changed, 23 insertions, 0 deletions
diff --git a/tests/specs/info/byonm/__test__.jsonc b/tests/specs/info/byonm/__test__.jsonc
new file mode 100644
index 000000000..6c9ba7dad
--- /dev/null
+++ b/tests/specs/info/byonm/__test__.jsonc
@@ -0,0 +1,11 @@
+{
+ "tempDir": true,
+ "steps": [{
+ "args": "install",
+ "output": "[WILDCARD]"
+ }, {
+ "args": "info npm:@denotest/add",
+ "output": "info.out",
+ "exitCode": 1
+ }]
+}
diff --git a/tests/specs/info/byonm/deno.json b/tests/specs/info/byonm/deno.json
new file mode 100644
index 000000000..4b88c71fb
--- /dev/null
+++ b/tests/specs/info/byonm/deno.json
@@ -0,0 +1,6 @@
+{
+ "nodeModulesDir": "manual",
+ "imports": {
+ "chalk": "npm:@denotest/add"
+ }
+}
diff --git a/tests/specs/info/byonm/info.out b/tests/specs/info/byonm/info.out
new file mode 100644
index 000000000..4e6f11a88
--- /dev/null
+++ b/tests/specs/info/byonm/info.out
@@ -0,0 +1 @@
+error: Resolving npm specifier entrypoints this way is currently not supported with "nodeModules": "manual". In the meantime, try with --node-modules-dir=auto instead
diff --git a/tests/specs/info/byonm/package.json b/tests/specs/info/byonm/package.json
new file mode 100644
index 000000000..15a786ad7
--- /dev/null
+++ b/tests/specs/info/byonm/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "@denotest/add": "*"
+ }
+}