summaryrefslogtreecommitdiff
path: root/tests/specs/npm/typo_in_npm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/npm/typo_in_npm')
-rw-r--r--tests/specs/npm/typo_in_npm/__test__.jsonc5
-rw-r--r--tests/specs/npm/typo_in_npm/main.out8
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/npm/typo_in_npm/__test__.jsonc b/tests/specs/npm/typo_in_npm/__test__.jsonc
new file mode 100644
index 000000000..03023c9e7
--- /dev/null
+++ b/tests/specs/npm/typo_in_npm/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "run np:cowsay",
+ "output": "main.out",
+ "exitCode": 1
+}
diff --git a/tests/specs/npm/typo_in_npm/main.out b/tests/specs/npm/typo_in_npm/main.out
new file mode 100644
index 000000000..19f17b1d0
--- /dev/null
+++ b/tests/specs/npm/typo_in_npm/main.out
@@ -0,0 +1,8 @@
+error: Unsupported scheme "np" for module "np:cowsay". Supported schemes:
+ - "blob"
+ - "data"
+ - "file"
+ - "http"
+ - "https"
+ - "jsr"
+ - "npm"