diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-30 15:46:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 19:46:43 +0000 |
commit | d7b787792c09569bd718d9acf2d2b73ae406828c (patch) | |
tree | b09fa58618fcd1ee9849437e9a43059a5daa0acd /tests | |
parent | c5c18699921cd45021f8c130eecdc09099c26878 (diff) |
fix(info): error instead of panic for npm specifiers when using byonm (#25947)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/specs/info/byonm/__test__.jsonc | 11 | ||||
-rw-r--r-- | tests/specs/info/byonm/deno.json | 6 | ||||
-rw-r--r-- | tests/specs/info/byonm/info.out | 1 | ||||
-rw-r--r-- | tests/specs/info/byonm/package.json | 5 |
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": "*" + } +} |