From 1587387bccb6dbecd85f5141dd7543f013d47cd8 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 6 May 2024 21:06:01 -0400 Subject: 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`. --- tests/registry/jsr/@denotest/import-https-url/1.0.0/analyzable.ts | 1 + tests/registry/jsr/@denotest/import-https-url/1.0.0/unanalyzable.ts | 5 +++++ tests/registry/jsr/@denotest/import-https-url/1.0.0_meta.json | 6 ++++++ tests/registry/jsr/@denotest/import-https-url/meta.json | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 tests/registry/jsr/@denotest/import-https-url/1.0.0/analyzable.ts create mode 100644 tests/registry/jsr/@denotest/import-https-url/1.0.0/unanalyzable.ts create mode 100644 tests/registry/jsr/@denotest/import-https-url/1.0.0_meta.json create mode 100644 tests/registry/jsr/@denotest/import-https-url/meta.json (limited to 'tests/registry/jsr/@denotest/import-https-url') diff --git a/tests/registry/jsr/@denotest/import-https-url/1.0.0/analyzable.ts b/tests/registry/jsr/@denotest/import-https-url/1.0.0/analyzable.ts new file mode 100644 index 000000000..b1b64d82f --- /dev/null +++ b/tests/registry/jsr/@denotest/import-https-url/1.0.0/analyzable.ts @@ -0,0 +1 @@ +await import("http://localhost:4545/welcome.ts"); diff --git a/tests/registry/jsr/@denotest/import-https-url/1.0.0/unanalyzable.ts b/tests/registry/jsr/@denotest/import-https-url/1.0.0/unanalyzable.ts new file mode 100644 index 000000000..63001d15f --- /dev/null +++ b/tests/registry/jsr/@denotest/import-https-url/1.0.0/unanalyzable.ts @@ -0,0 +1,5 @@ +function nonAnalyzableUrl() { + return "http://localhost:4545/" + "welcome.ts"; +} + +await import(nonAnalyzableUrl()); diff --git a/tests/registry/jsr/@denotest/import-https-url/1.0.0_meta.json b/tests/registry/jsr/@denotest/import-https-url/1.0.0_meta.json new file mode 100644 index 000000000..23b877080 --- /dev/null +++ b/tests/registry/jsr/@denotest/import-https-url/1.0.0_meta.json @@ -0,0 +1,6 @@ +{ + "exports": { + "./unanalyzable": "./unanalyzable.ts", + "./analyzable": "./analyzable.ts" + } +} diff --git a/tests/registry/jsr/@denotest/import-https-url/meta.json b/tests/registry/jsr/@denotest/import-https-url/meta.json new file mode 100644 index 000000000..02601e4d0 --- /dev/null +++ b/tests/registry/jsr/@denotest/import-https-url/meta.json @@ -0,0 +1,5 @@ +{ + "versions": { + "1.0.0": {} + } +} -- cgit v1.2.3