summaryrefslogtreecommitdiff
path: root/cli/tools/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r--cli/tools/test.rs7
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 {