summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-23 09:48:29 -0500
committerGitHub <noreply@github.com>2023-02-23 09:48:29 -0500
commit998aeff3d428ab28351f03129023850abb0b5bbe (patch)
tree0adb8127c920d3ddbf33f7fbf6679eeb79ba165d /cli/tests
parent6de815859b65a8fb03b6b00f6d26c93d3b6cf820 (diff)
feat(npm): support npm specifiers in remote modules without `--unstable` (#17889)
Closes #17455
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/npm_tests.rs4
-rw-r--r--cli/tests/testdata/npm/remote_npm_specifier/main.out2
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index 2ece84c5d..54053710e 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -217,11 +217,11 @@ itest!(sub_paths {
});
itest!(remote_npm_specifier {
- args: "run --quiet npm/remote_npm_specifier/main.ts",
+ args: "run --quiet -A npm/remote_npm_specifier/main.ts",
output: "npm/remote_npm_specifier/main.out",
envs: env_vars_for_npm_tests(),
http_server: true,
- exit_code: 1,
+ exit_code: 0,
});
itest!(tarball_with_global_header {
diff --git a/cli/tests/testdata/npm/remote_npm_specifier/main.out b/cli/tests/testdata/npm/remote_npm_specifier/main.out
index 0cb08b7bc..9daeafb98 100644
--- a/cli/tests/testdata/npm/remote_npm_specifier/main.out
+++ b/cli/tests/testdata/npm/remote_npm_specifier/main.out
@@ -1 +1 @@
-error: importing npm specifiers in remote modules requires the --unstable flag (referrer: http://localhost:4545/npm/remote_npm_specifier/remote.ts)
+test