diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-26 09:55:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 13:55:26 +0000 |
commit | 678ac5757b8283a2bb7bd0158f3c5273ea1e7eec (patch) | |
tree | 3a79b16ecc17267a9abdbbfe51891e8bf182f00c /cli/tests/integration/npm_tests.rs | |
parent | a0d10efbb1acffe203c42a4f6133ba5af0dcef18 (diff) |
fix(compile): show an error when using npm specifiers (#16430)
Closes #16427
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 8fa79d06c..722cbdb39 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -711,6 +711,14 @@ fn ensure_registry_files_local() { } } +itest!(compile_errors { + args: "compile -A --quiet --unstable 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"), + exit_code: 1, + envs: env_vars(), + http_server: true, +}); + fn env_vars_no_sync_download() -> Vec<(String, String)> { vec![ ("DENO_NODE_COMPAT_URL".to_string(), util::std_file_url()), |