From 77ead8af20180453aa2d0db67d7856641bd5498f Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 1 Sep 2021 17:31:56 +0800 Subject: fix(cli): retain path based test mode inference (#11878) --- cli/tools/test.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cli/tools') diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 62621a232..8111293b4 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -757,9 +757,7 @@ async fn fetch_specifiers_with_test_mode( .fetch(specifier, &mut Permissions::allow_all()) .await?; - if file.media_type != MediaType::Unknown { - *mode = TestMode::Both - } else { + if file.media_type == MediaType::Unknown { *mode = TestMode::Documentation } } -- cgit v1.2.3