mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(coverage): exclude .snap files (#14480)
This commit is contained in:
parent
e3954df8c5
commit
253fbf9d2a
6 changed files with 79 additions and 1 deletions
|
@ -583,7 +583,8 @@ fn filter_coverages(
|
|||
.filter(|e| {
|
||||
let is_internal = e.url.starts_with("deno:")
|
||||
|| e.url.ends_with("__anonymous__")
|
||||
|| e.url.ends_with("$deno$test.js");
|
||||
|| e.url.ends_with("$deno$test.js")
|
||||
|| e.url.ends_with(".snap");
|
||||
|
||||
let is_included = include.iter().any(|p| p.is_match(&e.url));
|
||||
let is_excluded = exclude.iter().any(|p| p.is_match(&e.url));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue