summaryrefslogtreecommitdiff
path: root/tests/specs/add/missing_prefix/__test__.jsonc
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-09-18 11:38:22 -0700
committerGitHub <noreply@github.com>2024-09-18 20:38:22 +0200
commitec86089c4e95eabbf9edc48491031eb6711a410f (patch)
tree3b441ba1bc9f7f95b6d87b4439cec78176db39c4 /tests/specs/add/missing_prefix/__test__.jsonc
parentc90b07457958518a8830798d8800f647f897d12f (diff)
feat: require jsr prefix for `deno install` and `deno add` (#25698)
Diffstat (limited to 'tests/specs/add/missing_prefix/__test__.jsonc')
-rw-r--r--tests/specs/add/missing_prefix/__test__.jsonc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/add/missing_prefix/__test__.jsonc b/tests/specs/add/missing_prefix/__test__.jsonc
new file mode 100644
index 000000000..1c97b7737
--- /dev/null
+++ b/tests/specs/add/missing_prefix/__test__.jsonc
@@ -0,0 +1,15 @@
+{
+ "tempDir": true,
+ "steps": [
+ {
+ "args": "add ajv",
+ "output": "error: ajv is missing a prefix. Did you mean `deno add npm:ajv`?\n",
+ "exitCode": 1
+ },
+ {
+ "args": "add @std/testing",
+ "output": "error: @std/testing is missing a prefix. Did you mean `deno add jsr:@std/testing`?\n",
+ "exitCode": 1
+ }
+ ]
+}