summaryrefslogtreecommitdiff
path: root/cli/tools/test.rs
diff options
context:
space:
mode:
authorLevente Kurusa <lkurusa@kernelstuff.org>2023-04-19 23:30:52 +0200
committerGitHub <noreply@github.com>2023-04-19 23:30:52 +0200
commitc33675588117aad0b8fabfa5816676d95ba8067e (patch)
tree49cfb08f08a1345b0381f347a393cb397a9c8ce5 /cli/tools/test.rs
parenta8ca09f78a26c16ed07bcffd23f1f9f486fa04e4 (diff)
fix(test/coverage): exclude test files (#18748)
Fixes: #18454
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r--cli/tools/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index 977073ab7..853307374 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -1518,7 +1518,7 @@ async fn test_specifiers(
}
/// Checks if the path has a basename and extension Deno supports for tests.
-fn is_supported_test_path(path: &Path) -> bool {
+pub(crate) fn is_supported_test_path(path: &Path) -> bool {
if let Some(name) = path.file_stem() {
let basename = name.to_string_lossy();
(basename.ends_with("_test")