diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-07 10:09:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 10:09:10 -0400 |
commit | da9db887e34f0075e1433ee93854267aec0ef468 (patch) | |
tree | cb10d061c4d28933524a26d62d7ca4957d95a443 /cli/tools/test.rs | |
parent | 28ce0ef583b1be03f5ec4fdd90b946590862c5d4 (diff) |
refactor: helpers methods on `TypeCheckMode` (#19393)
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r-- | cli/tools/test.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index bc8f68599..ebe4deb9a 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -3,7 +3,6 @@ use crate::args::CliOptions; use crate::args::FilesConfig; use crate::args::TestOptions; -use crate::args::TypeCheckMode; use crate::colors; use crate::display; use crate::factory::CliFactory; @@ -39,7 +38,6 @@ use deno_core::task::spawn_blocking; use deno_core::url::Url; use deno_core::v8; use deno_core::ModuleSpecifier; -use deno_graph::GraphKind; use deno_runtime::deno_io::Stdio; use deno_runtime::deno_io::StdioPipe; use deno_runtime::fmt_errors::format_js_error; @@ -1707,11 +1705,7 @@ pub async fn run_tests_with_watch( // file would have impact on other files, which is undesirable. let permissions = Permissions::from_options(&cli_options.permissions_options())?; - let type_check = cli_options.type_check_mode() != TypeCheckMode::None; - let graph_kind = match type_check { - true => GraphKind::All, - false => GraphKind::CodeOnly, - }; + let graph_kind = cli_options.type_check_mode().as_graph_kind(); let log_level = cli_options.log_level(); let resolver = |changed: Option<Vec<PathBuf>>| { |