From 8acf059ac683ff13c6973914c57caa0ef07d6d9a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 4 Nov 2023 00:43:54 -0400 Subject: 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. --- cli/tests/integration/doc_tests.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'cli/tests/integration') 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", -- cgit v1.2.3