summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-06 21:06:01 -0400
committerGitHub <noreply@github.com>2024-05-07 01:06:01 +0000
commit1587387bccb6dbecd85f5141dd7543f013d47cd8 (patch)
treeb9829c3e50442deff360cf664555935a0d16a4db /tests/specs
parent87d1ead7d09638172b0e397c8209c759666514da (diff)
chore(test): move npm registries to separate servers and to the `tests/registry` folder (#23717)
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/bench/package_json/lib.bench.out4
-rw-r--r--tests/specs/cache/package_json/main.cache.out4
-rw-r--r--tests/specs/check/cjs_default_export/main.out4
-rw-r--r--tests/specs/npm/check_pkg_json_import/main.out4
-rw-r--r--tests/specs/npm/conditional_exports/main.out16
-rw-r--r--tests/specs/npm/conditional_exports_node_modules_dir/main.out16
-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
-rw-r--r--tests/specs/npm/es_module/main.out4
-rw-r--r--tests/specs/npm/es_module/test.out4
-rw-r--r--tests/specs/npm/require_resolve_bad_paths_global_cache/main.out8
-rw-r--r--tests/specs/publish/bare_node_builtins/bare_node_builtins.out4
-rw-r--r--tests/specs/publish/invalid_import/invalid_import.out4
-rw-r--r--tests/specs/publish/node_specifier/node_specifier.out4
-rw-r--r--tests/specs/publish/package_json/package_json.out4
16 files changed, 40 insertions, 51 deletions
diff --git a/tests/specs/bench/package_json/lib.bench.out b/tests/specs/bench/package_json/lib.bench.out
index fa9c5efc6..9fcdce42b 100644
--- a/tests/specs/bench/package_json/lib.bench.out
+++ b/tests/specs/bench/package_json/lib.bench.out
@@ -1,5 +1,5 @@
-Download http://localhost:4545/npm/registry/@denotest/esm-basic
-Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz
+Download http://localhost:4558/@denotest/esm-basic
+Download http://localhost:4558/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
Check file:///[WILDCARD]/lib.bench.ts
cpu: [WILDCARD]
diff --git a/tests/specs/cache/package_json/main.cache.out b/tests/specs/cache/package_json/main.cache.out
index 1c729e2a3..e555addeb 100644
--- a/tests/specs/cache/package_json/main.cache.out
+++ b/tests/specs/cache/package_json/main.cache.out
@@ -1,3 +1,3 @@
-Download http://localhost:4545/npm/registry/@denotest/esm-basic
-Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz
+Download http://localhost:4558/@denotest/esm-basic
+Download http://localhost:4558/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
diff --git a/tests/specs/check/cjs_default_export/main.out b/tests/specs/check/cjs_default_export/main.out
index 204488273..1fba376bb 100644
--- a/tests/specs/check/cjs_default_export/main.out
+++ b/tests/specs/check/cjs_default_export/main.out
@@ -1,5 +1,5 @@
-Download http://localhost:4545/npm/registry/@denotest/cjs-default-export
-Download http://localhost:4545/npm/registry/@denotest/cjs-default-export/1.0.0.tgz
+Download http://localhost:4558/@denotest/cjs-default-export
+Download http://localhost:4558/@denotest/cjs-default-export/1.0.0.tgz
Check file:///[WILDCARD]/main.ts
error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
export const Test: string = cjsDefault.default();
diff --git a/tests/specs/npm/check_pkg_json_import/main.out b/tests/specs/npm/check_pkg_json_import/main.out
index 1f436e613..89e7ffefb 100644
--- a/tests/specs/npm/check_pkg_json_import/main.out
+++ b/tests/specs/npm/check_pkg_json_import/main.out
@@ -1,3 +1,3 @@
-Download http://localhost:4545/npm/registry/@denotest/types-pkg-json-import
-Download http://localhost:4545/npm/registry/@denotest/types-pkg-json-import/1.0.0.tgz
+Download http://localhost:4558/@denotest/types-pkg-json-import
+Download http://localhost:4558/@denotest/types-pkg-json-import/1.0.0.tgz
Check file:///[WILDLINE]/main.ts
diff --git a/tests/specs/npm/conditional_exports/main.out b/tests/specs/npm/conditional_exports/main.out
index dbd1b87fe..9d5318f32 100644
--- a/tests/specs/npm/conditional_exports/main.out
+++ b/tests/specs/npm/conditional_exports/main.out
@@ -1,14 +1,14 @@
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/conditional-exports
-Download http://localhost:4545/npm/registry/supports-esm
-Download http://localhost:4545/npm/registry/has-package-exports
-Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns
+Download http://localhost:4558/@denotest/conditional-exports
+Download http://localhost:4558/supports-esm
+Download http://localhost:4558/has-package-exports
+Download http://localhost:4558/@ljharb/has-package-exports-patterns
[UNORDERED_END]
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/conditional-exports/1.0.0.tgz
-Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz
-Download http://localhost:4545/npm/registry/has-package-exports/has-package-exports-1.3.0.tgz
-Download http://localhost:4545/npm/registry/supports-esm/supports-esm-1.0.0.tgz
+Download http://localhost:4558/@denotest/conditional-exports/1.0.0.tgz
+Download http://localhost:4558/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz
+Download http://localhost:4558/has-package-exports/has-package-exports-1.3.0.tgz
+Download http://localhost:4558/supports-esm/supports-esm-1.0.0.tgz
[UNORDERED_END]
{ hello: "from esm" }
{ hello: "from foo" }
diff --git a/tests/specs/npm/conditional_exports_node_modules_dir/main.out b/tests/specs/npm/conditional_exports_node_modules_dir/main.out
index 460aec0f1..d08de7fa0 100644
--- a/tests/specs/npm/conditional_exports_node_modules_dir/main.out
+++ b/tests/specs/npm/conditional_exports_node_modules_dir/main.out
@@ -1,17 +1,17 @@
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/conditional-exports
-Download http://localhost:4545/npm/registry/supports-esm
-Download http://localhost:4545/npm/registry/has-package-exports
-Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns
+Download http://localhost:4558/@denotest/conditional-exports
+Download http://localhost:4558/supports-esm
+Download http://localhost:4558/has-package-exports
+Download http://localhost:4558/@ljharb/has-package-exports-patterns
[UNORDERED_END]
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/conditional-exports/1.0.0.tgz
+Download http://localhost:4558/@denotest/conditional-exports/1.0.0.tgz
Initialize @denotest/conditional-exports@1.0.0
-Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz
+Download http://localhost:4558/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz
Initialize @ljharb/has-package-exports-patterns@0.0.2
-Download http://localhost:4545/npm/registry/has-package-exports/has-package-exports-1.3.0.tgz
+Download http://localhost:4558/has-package-exports/has-package-exports-1.3.0.tgz
Initialize has-package-exports@1.3.0
-Download http://localhost:4545/npm/registry/supports-esm/supports-esm-1.0.0.tgz
+Download http://localhost:4558/supports-esm/supports-esm-1.0.0.tgz
Initialize supports-esm@1.0.0
[UNORDERED_END]
{ hello: "from esm" }
diff --git a/tests/specs/npm/denotest2_scope/__test__.jsonc b/tests/specs/npm/denotest2_scope/__test__.jsonc
deleted file mode 100644
index f94250771..000000000
--- a/tests/specs/npm/denotest2_scope/__test__.jsonc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "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
deleted file mode 100644
index dba8187a8..000000000
--- a/tests/specs/npm/denotest2_scope/main.js
+++ /dev/null
@@ -1,3 +0,0 @@
-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
deleted file mode 100644
index 83e04ddf5..000000000
--- a/tests/specs/npm/denotest2_scope/main.out
+++ /dev/null
@@ -1,3 +0,0 @@
-Download http://localhost:4545/npm/registry/@denotest2/basic
-Download http://localhost:4545/npm/registry/@denotest2/basic/1.0.0.tgz
-0
diff --git a/tests/specs/npm/es_module/main.out b/tests/specs/npm/es_module/main.out
index 2010a5b73..6512e9977 100644
--- a/tests/specs/npm/es_module/main.out
+++ b/tests/specs/npm/es_module/main.out
@@ -1,3 +1,3 @@
-Download http://localhost:4545/npm/registry/chalk
-Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
+Download http://localhost:4558/chalk
+Download http://localhost:4558/chalk/chalk-5.0.1.tgz
chalk esm loads
diff --git a/tests/specs/npm/es_module/test.out b/tests/specs/npm/es_module/test.out
index 0ed0fbd3c..5fca2219a 100644
--- a/tests/specs/npm/es_module/test.out
+++ b/tests/specs/npm/es_module/test.out
@@ -1,5 +1,5 @@
-Download http://localhost:4545/npm/registry/chalk
-Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
+Download http://localhost:4558/chalk
+Download http://localhost:4558/chalk/chalk-5.0.1.tgz
running 1 test from ./test.js
test ...
------- output -------
diff --git a/tests/specs/npm/require_resolve_bad_paths_global_cache/main.out b/tests/specs/npm/require_resolve_bad_paths_global_cache/main.out
index 563d84ac4..6f5ea7bdd 100644
--- a/tests/specs/npm/require_resolve_bad_paths_global_cache/main.out
+++ b/tests/specs/npm/require_resolve_bad_paths_global_cache/main.out
@@ -1,9 +1,9 @@
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/esm-basic
-Download http://localhost:4545/npm/registry/@denotest/require-resolve
+Download http://localhost:4558/@denotest/esm-basic
+Download http://localhost:4558/@denotest/require-resolve
[UNORDERED_END]
[UNORDERED_START]
-Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz
-Download http://localhost:4545/npm/registry/@denotest/require-resolve/1.0.0.tgz
+Download http://localhost:4558/@denotest/esm-basic/1.0.0.tgz
+Download http://localhost:4558/@denotest/require-resolve/1.0.0.tgz
[UNORDERED_END]
[WILDLINE]@denotest[WILDCHAR]esm-basic[WILDCHAR]1.0.0[WILDCHAR]main.mjs
diff --git a/tests/specs/publish/bare_node_builtins/bare_node_builtins.out b/tests/specs/publish/bare_node_builtins/bare_node_builtins.out
index 09acc639f..03fd8be3a 100644
--- a/tests/specs/publish/bare_node_builtins/bare_node_builtins.out
+++ b/tests/specs/publish/bare_node_builtins/bare_node_builtins.out
@@ -1,7 +1,7 @@
Warning: Resolving "url" as "node:url" at file:///[WILDLINE]/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix.
Warning: Resolving "url" as "node:url" at file:///[WILDLINE]/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix.
-Download http://localhost:4545/npm/registry/@types/node
-Download http://localhost:4545/npm/registry/@types/node/node-18.16.19.tgz
+Download http://localhost:4558/@types/node
+Download http://localhost:4558/@types/node/node-18.16.19.tgz
Check file:///[WILDLINE]/mod.ts
Checking for slow types in the public API...
Check file:///[WILDLINE]/mod.ts
diff --git a/tests/specs/publish/invalid_import/invalid_import.out b/tests/specs/publish/invalid_import/invalid_import.out
index f6742de95..baddb679a 100644
--- a/tests/specs/publish/invalid_import/invalid_import.out
+++ b/tests/specs/publish/invalid_import/invalid_import.out
@@ -1,7 +1,7 @@
Download http://localhost:4545/welcome.ts
Download http://localhost:4545/echo.ts
-Download http://localhost:4545/npm/registry/chalk
-Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
+Download http://localhost:4558/chalk
+Download http://localhost:4558/chalk/chalk-5.0.1.tgz
Check file:///[WILDCARD]/mod.ts
Checking for slow types in the public API...
Check file://[WILDCARD]mod.ts
diff --git a/tests/specs/publish/node_specifier/node_specifier.out b/tests/specs/publish/node_specifier/node_specifier.out
index d3e4a367b..3c7151e29 100644
--- a/tests/specs/publish/node_specifier/node_specifier.out
+++ b/tests/specs/publish/node_specifier/node_specifier.out
@@ -1,5 +1,5 @@
-Download http://localhost:4545/npm/registry/@types/node
-Download http://localhost:4545/npm/registry/@types/node/node-[WILDCARD].tgz
+Download http://localhost:4558/@types/node
+Download http://localhost:4558/@types/node/node-[WILDCARD].tgz
Check file:///[WILDCARD]/mod.ts
Checking for slow types in the public API...
Check file:///[WILDCARD]/publish/node_specifier/mod.ts
diff --git a/tests/specs/publish/package_json/package_json.out b/tests/specs/publish/package_json/package_json.out
index 7b54ce8da..875356743 100644
--- a/tests/specs/publish/package_json/package_json.out
+++ b/tests/specs/publish/package_json/package_json.out
@@ -1,5 +1,5 @@
-Download http://localhost:4545/npm/registry/picocolors
-Download http://localhost:4545/npm/registry/picocolors/picocolors-1.0.0.tgz
+Download http://localhost:4558/picocolors
+Download http://localhost:4558/picocolors/picocolors-1.0.0.tgz
Check file:///[WILDCARD]/publish/package_json/mod.ts
Checking for slow types in the public API...
Check file:///[WILDCARD]/publish/package_json/mod.ts