diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-01-15 19:15:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 19:15:39 -0500 |
commit | 4e72ca313a8fa1d826783bdc5657937da97d590c (patch) | |
tree | 254bb4074df8a8dfe42200bc0e613b7e082651f3 /cli/tools/test/mod.rs | |
parent | 3ff80eb1521c49a43e0fae53840e5a636571ebfe (diff) |
refactor: use globbing from deno_config (#21925)
Diffstat (limited to 'cli/tools/test/mod.rs')
-rw-r--r-- | cli/tools/test/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tools/test/mod.rs b/cli/tools/test/mod.rs index 2c226db4d..d1dc76028 100644 --- a/cli/tools/test/mod.rs +++ b/cli/tools/test/mod.rs @@ -16,8 +16,6 @@ use crate::module_loader::ModuleLoadPreparer; use crate::ops; use crate::util::file_watcher; use crate::util::fs::collect_specifiers; -use crate::util::glob::FilePatterns; -use crate::util::glob::PathOrPattern; use crate::util::path::get_extension; use crate::util::path::is_script_ext; use crate::util::path::mapped_specifier_for_tsc; @@ -26,6 +24,8 @@ use crate::worker::CliMainWorkerFactory; use deno_ast::swc::common::comments::CommentKind; use deno_ast::MediaType; use deno_ast::SourceRangedForSpanned; +use deno_config::glob::FilePatterns; +use deno_config::glob::PathOrPattern; use deno_core::anyhow; use deno_core::anyhow::bail; use deno_core::anyhow::Context as _; @@ -1065,6 +1065,7 @@ fn is_supported_test_path_predicate( .map(|p| { p.inner().iter().any(|p| match p { PathOrPattern::Path(p) => p == path, + PathOrPattern::RemoteUrl(_) => true, PathOrPattern::Pattern(p) => p.matches_path(path), }) }) |