summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-05-03 01:00:38 +0100
committerGitHub <noreply@github.com>2024-05-03 00:00:38 +0000
commitcf0579c7d4b69fcb205fb0d5320e0a00012720ee (patch)
tree114fe9f5a83aa17b01374de39364cfdf176db147 /tests/specs
parent1b27b5839624ebf9fef65cea28a17281f3b79a74 (diff)
test: npm registry handles two test scopes (#23663)
This commit updates our testing npm registry to handle additional `@denotest2` scope in addition to `@denotest` scope. I might have to update it further in the future to handle additional scopes, but it's good enough for now.
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/npm/denotest2_scope/__test__.jsonc5
-rw-r--r--tests/specs/npm/denotest2_scope/main.js3
-rw-r--r--tests/specs/npm/denotest2_scope/main.out3
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/npm/denotest2_scope/__test__.jsonc b/tests/specs/npm/denotest2_scope/__test__.jsonc
new file mode 100644
index 000000000..f94250771
--- /dev/null
+++ b/tests/specs/npm/denotest2_scope/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "tempDir": true,
+ "args": "run -A main.js",
+ "output": "main.out"
+}
diff --git a/tests/specs/npm/denotest2_scope/main.js b/tests/specs/npm/denotest2_scope/main.js
new file mode 100644
index 000000000..dba8187a8
--- /dev/null
+++ b/tests/specs/npm/denotest2_scope/main.js
@@ -0,0 +1,3 @@
+import * as test from "npm:@denotest2/basic";
+
+console.log(test.getValue());
diff --git a/tests/specs/npm/denotest2_scope/main.out b/tests/specs/npm/denotest2_scope/main.out
new file mode 100644
index 000000000..83e04ddf5
--- /dev/null
+++ b/tests/specs/npm/denotest2_scope/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/npm/registry/@denotest2/basic
+Download http://localhost:4545/npm/registry/@denotest2/basic/1.0.0.tgz
+0