summaryrefslogtreecommitdiff
path: root/tests/specs/npm/npmrc
diff options
context:
space:
mode:
authorhaturau <135221985+haturatu@users.noreply.github.com>2024-11-20 01:20:47 +0900
committerGitHub <noreply@github.com>2024-11-20 01:20:47 +0900
commit85719a67e59c7aa45bead26e4942d7df8b1b42d4 (patch)
treeface0aecaac53e93ce2f23b53c48859bcf1a36ec /tests/specs/npm/npmrc
parent67697bc2e4a62a9670699fd18ad0dd8efc5bd955 (diff)
parent186b52731c6bb326c4d32905c5e732d082e83465 (diff)
Merge branch 'denoland:main' into main
Diffstat (limited to 'tests/specs/npm/npmrc')
-rw-r--r--tests/specs/npm/npmrc/__test__.jsonc4
-rw-r--r--tests/specs/npm/npmrc/info.out87
-rw-r--r--tests/specs/npm/npmrc/install.out4
3 files changed, 93 insertions, 2 deletions
diff --git a/tests/specs/npm/npmrc/__test__.jsonc b/tests/specs/npm/npmrc/__test__.jsonc
index e7588a779..88ef2d810 100644
--- a/tests/specs/npm/npmrc/__test__.jsonc
+++ b/tests/specs/npm/npmrc/__test__.jsonc
@@ -13,6 +13,10 @@
"run_node_modules_dir": {
"args": "run --node-modules-dir=auto -A --quiet main.js",
"output": "main.out"
+ },
+ "info": {
+ "args": "info --node-modules-dir=auto --json main.js",
+ "output": "info.out"
}
}
}
diff --git a/tests/specs/npm/npmrc/info.out b/tests/specs/npm/npmrc/info.out
new file mode 100644
index 000000000..ee9aa9ee9
--- /dev/null
+++ b/tests/specs/npm/npmrc/info.out
@@ -0,0 +1,87 @@
+[UNORDERED_START]
+Download http://localhost:4262/@denotest2%2fbasic
+Download http://localhost:4261/@denotest%2fbasic
+Download http://localhost:4261/@denotest/basic/1.0.0.tgz
+Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
+[UNORDERED_END]
+[UNORDERED_START]
+Initialize @denotest/basic@1.0.0
+Initialize @denotest2/basic@1.0.0
+[UNORDERED_END]
+{
+ "version": 1,
+ "roots": [
+ "file://[WILDCARD]/main.js"
+ ],
+ "modules": [
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "@denotest/basic",
+ "code": {
+ "specifier": "npm:@denotest/basic@1.0.0",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 35
+ },
+ "end": {
+ "line": 0,
+ "character": 52
+ }
+ }
+ }
+ },
+ {
+ "specifier": "@denotest2/basic",
+ "code": {
+ "specifier": "npm:@denotest2/basic@1.0.0",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 40
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]main.js",
+ "size": 192,
+ "mediaType": "JavaScript",
+ "specifier": "file://[WILDCARD]/main.js"
+ },
+ {
+ "kind": "npm",
+ "specifier": "npm:/@denotest/basic@1.0.0",
+ "npmPackage": "@denotest/basic@1.0.0"
+ },
+ {
+ "kind": "npm",
+ "specifier": "npm:/@denotest2/basic@1.0.0",
+ "npmPackage": "@denotest2/basic@1.0.0"
+ }
+ ],
+ "redirects": {
+ "npm:@denotest/basic@1.0.0": "npm:/@denotest/basic@1.0.0",
+ "npm:@denotest2/basic@1.0.0": "npm:/@denotest2/basic@1.0.0"
+ },
+ "npmPackages": {
+ "@denotest/basic@1.0.0": {
+ "name": "@denotest/basic",
+ "version": "1.0.0",
+ "dependencies": [],
+ "registryUrl": "http://localhost:4261/"
+ },
+ "@denotest2/basic@1.0.0": {
+ "name": "@denotest2/basic",
+ "version": "1.0.0",
+ "dependencies": [],
+ "registryUrl": "http://localhost:4262/"
+ }
+ }
+}
diff --git a/tests/specs/npm/npmrc/install.out b/tests/specs/npm/npmrc/install.out
index 30643527e..f2ea78c3f 100644
--- a/tests/specs/npm/npmrc/install.out
+++ b/tests/specs/npm/npmrc/install.out
@@ -1,6 +1,6 @@
[UNORDERED_START]
-Download http://localhost:4261/@denotest/basic
-Download http://localhost:4262/@denotest2/basic
+Download http://localhost:4261/@denotest%2fbasic
+Download http://localhost:4262/@denotest2%2fbasic
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
Initialize @denotest2/basic@1.0.0