From 191f4f16ad0cf612c5fa18009441d266b14e1c14 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 14 Nov 2022 19:55:08 -0500 Subject: fix(bundle): explicit error when using an npm specifier with deno bundle (#16637) --- cli/tests/integration/npm_tests.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration/npm_tests.rs') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 07460d990..3de6e5f2d 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -719,8 +719,16 @@ fn ensure_registry_files_local() { } itest!(compile_errors { - args: "compile -A --quiet npm/esm/main.js", - output_str: Some("error: npm specifiers have not yet been implemented for deno compile (https://github.com/denoland/deno/issues/15960). Found: npm:chalk@5\n"), + args: "compile -A --quiet npm/cached_only/main.ts", + output_str: Some("error: npm specifiers have not yet been implemented for this sub command (https://github.com/denoland/deno/issues/15960). Found: npm:chalk@5\n"), + exit_code: 1, + envs: env_vars(), + http_server: true, +}); + +itest!(bundle_errors { + args: "bundle --quiet npm/esm/main.js", + output_str: Some("error: npm specifiers have not yet been implemented for this sub command (https://github.com/denoland/deno/issues/15960). Found: npm:chalk@5\n"), exit_code: 1, envs: env_vars(), http_server: true, -- cgit v1.2.3