diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-06 21:06:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 01:06:01 +0000 |
commit | 1587387bccb6dbecd85f5141dd7543f013d47cd8 (patch) | |
tree | b9829c3e50442deff360cf664555935a0d16a4db /tests/specs/npm | |
parent | 87d1ead7d09638172b0e397c8209c759666514da (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/npm')
-rw-r--r-- | tests/specs/npm/check_pkg_json_import/main.out | 4 | ||||
-rw-r--r-- | tests/specs/npm/conditional_exports/main.out | 16 | ||||
-rw-r--r-- | tests/specs/npm/conditional_exports_node_modules_dir/main.out | 16 | ||||
-rw-r--r-- | tests/specs/npm/denotest2_scope/__test__.jsonc | 5 | ||||
-rw-r--r-- | tests/specs/npm/denotest2_scope/main.js | 3 | ||||
-rw-r--r-- | tests/specs/npm/denotest2_scope/main.out | 3 | ||||
-rw-r--r-- | tests/specs/npm/es_module/main.out | 4 | ||||
-rw-r--r-- | tests/specs/npm/es_module/test.out | 4 | ||||
-rw-r--r-- | tests/specs/npm/require_resolve_bad_paths_global_cache/main.out | 8 |
9 files changed, 26 insertions, 37 deletions
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 |