diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-28 16:19:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 16:19:55 -0400 |
commit | edaceecec771cf0395639175b5a21d20530f6080 (patch) | |
tree | 8c9708d095a8ed7c9e897869a68f9d2c9b4d7ffd /cli/tests/integration/npm_tests.rs | |
parent | 2c674dcd20aeb19d694e03d969f5792d1581e87a (diff) |
feat: support npm specifiers in `deno info` for display text output only (#16470)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 9e3ef5678..0ca1ae910 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -733,6 +733,31 @@ itest!(compile_errors { http_server: true, }); +itest!(info_chalk { + args: "info --quiet --unstable npm/cjs_with_deps/main.js", + output: "npm/cjs_with_deps/main.info.out", + exit_code: 0, + envs: env_vars(), + http_server: true, +}); + +itest!(info_chalk_node_modules_dir { + args: "info --quiet --unstable --node-modules-dir $TESTDATA/npm/cjs_with_deps/main.js", + output: "npm/cjs_with_deps/main.info.out", + exit_code: 0, + envs: env_vars(), + http_server: true, + temp_cwd: true, +}); + +itest!(info_cli_chalk { + args: "info --quiet --unstable npm:chalk@4", + output: "npm/deno_info_chalk.out", + exit_code: 0, + 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()), |