diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-30 23:58:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 23:58:57 +0100 |
commit | 48c5c3a3fb2f43716528db8915b36e55c411d94f (patch) | |
tree | 557d833f997ab96652ef4a64dfd59348d5e4017e /cli/tests/integration/doc_tests.rs | |
parent | b75f3b5ca0952db8b50cf417c107f3f14fe582d5 (diff) |
feat(doc): support multiple file entry (#21018)
This commit adds support for multiple entry points to `deno doc`.
Unfortunately to achieve that, I had to change the semantics of the
command to explicitly require `--filter` parameter for filtering
symbols, instead of treating second free argument as the filter argument.
`deno doc --builtin` is still supported, but cannot be mixed with
actual entrypoints.
Diffstat (limited to 'cli/tests/integration/doc_tests.rs')
-rw-r--r-- | cli/tests/integration/doc_tests.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tests/integration/doc_tests.rs b/cli/tests/integration/doc_tests.rs index cdbee845b..2afa8ca92 100644 --- a/cli/tests/integration/doc_tests.rs +++ b/cli/tests/integration/doc_tests.rs @@ -17,12 +17,13 @@ fn deno_doc() { let output = context .new_command() .env("NO_COLOR", "1") - .args("doc doc/deno_doc.ts") + .args("doc doc/deno_doc.ts doc/deno_doc2.ts") .split_output() .run(); output.assert_exit_code(0); assert_contains!(output.stdout(), "function foo"); + assert_contains!(output.stdout(), "function bar"); } } @@ -54,7 +55,7 @@ itest!(deno_doc_referenced_private_types { itest!(_060_deno_doc_displays_all_overloads_in_details_view { args: - "doc doc/060_deno_doc_displays_all_overloads_in_details_view.ts NS.test", + "doc --filter NS.test doc/060_deno_doc_displays_all_overloads_in_details_view.ts", output: "doc/060_deno_doc_displays_all_overloads_in_details_view.ts.out", }); |