diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-04 00:43:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 04:43:54 +0000 |
commit | 8acf059ac683ff13c6973914c57caa0ef07d6d9a (patch) | |
tree | 7aa9d891f6a55f4652f1c224df5ba87617291456 /cli/tests/integration/doc_tests.rs | |
parent | efa1c1c9644237e82ec19a3e9ccac7e393d20e52 (diff) |
fix(doc): `deno doc --lint mod.ts` should output how many files checked (#21084)
As pointed out in https://github.com/denoland/deno/issues/21067 , it's
confusing that `deno doc --lint mod.ts` outputs the documentation to
stdout on success. Instead, it would be better if it outputted how many
files were checked similar to what `deno lint` does on success. It still
outputs the documentation if `--lint` or `--html` are provided so this
is non-breaking.
Diffstat (limited to 'cli/tests/integration/doc_tests.rs')
-rw-r--r-- | cli/tests/integration/doc_tests.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/integration/doc_tests.rs b/cli/tests/integration/doc_tests.rs index f5ac44a02..7a3f08f48 100644 --- a/cli/tests/integration/doc_tests.rs +++ b/cli/tests/integration/doc_tests.rs @@ -70,6 +70,23 @@ itest!(deno_doc_html_lint_referenced_private_types_fixed { output: "doc/referenced_private_types_lint.out", }); +itest!(deno_doc_lint_success { + args: "doc --lint doc/lint_success.ts", + output: "doc/lint_success.out", +}); + +itest!(deno_doc_lint_json_success { + args: "doc --lint --json doc/lint_success.ts", + output: "doc/lint_success_json.out", +}); + +itest!(deno_doc_lint_html_success { + args: "doc --lint --html --name=Library lint_success.ts", + copy_temp_dir: Some("doc"), + cwd: Some("doc"), + output: "doc/lint_success_html.out", +}); + itest!(_060_deno_doc_displays_all_overloads_in_details_view { args: "doc --filter NS.test doc/060_deno_doc_displays_all_overloads_in_details_view.ts", |