diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2021-12-23 00:25:06 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 14:25:06 +0100 |
| commit | 8547a37132752cf6a979237c5a52a7bf16a4e833 (patch) | |
| tree | 10e14c5aa8675bf75c8aa66bf7bf1f7de6948fee /cli/tools/test.rs | |
| parent | ac06797fa8607f2e15477fe1b038215740a5747d (diff) | |
chore: update deno_graph and deno_doc (#13173)
Diffstat (limited to 'cli/tools/test.rs')
| -rw-r--r-- | cli/tools/test.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 959cefcc1..d78363add 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -1092,6 +1092,11 @@ pub async fn run_tests_with_watch( let files_changed = changed.is_some(); let include = include.clone(); let ignore = ignore.clone(); + let check_js = ps + .maybe_config_file + .as_ref() + .map(|cf| cf.get_check_js()) + .unwrap_or(false); async move { let test_modules = if test_flags.doc { @@ -1131,7 +1136,7 @@ pub async fn run_tests_with_watch( None, ) .await; - graph_valid(&graph, !no_check)?; + graph_valid(&graph, !no_check, check_js)?; // TODO(@kitsonk) - This should be totally derivable from the graph. for specifier in test_modules { |
