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/npm/@denotest/cjs-with-file-stem/1.0.0/index.js | 5 +++++ .../registry/npm/@denotest/cjs-with-file-stem/1.0.0/other.service.js | 4 ++++ tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/package.json | 4 ++++ tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/tslib.js | 3 +++ 4 files changed, 16 insertions(+) create mode 100644 tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/index.js create mode 100644 tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/other.service.js create mode 100644 tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/package.json create mode 100644 tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/tslib.js (limited to 'tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0') diff --git a/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/index.js b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/index.js new file mode 100644 index 000000000..f7164182a --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/index.js @@ -0,0 +1,5 @@ +"use strict"; +console.log("hello"); +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("./tslib.js"); +tslib_1.__exportStar(require("./other.service"), exports); diff --git a/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/other.service.js b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/other.service.js new file mode 100644 index 000000000..ba702a9af --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/other.service.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = void 0; +console.log("world"); \ No newline at end of file diff --git a/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/package.json b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/package.json new file mode 100644 index 000000000..c72a8ae5a --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/package.json @@ -0,0 +1,4 @@ +{ + "name": "@denotest/cjs-with-file-stem", + "version": "1.0.0" +} diff --git a/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/tslib.js b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/tslib.js new file mode 100644 index 000000000..e5c2d6bc0 --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-with-file-stem/1.0.0/tslib.js @@ -0,0 +1,3 @@ +module.exports = { + __exportStar: function(mod) {} +}; \ No newline at end of file -- cgit v1.2.3