fix(coverage): exclude .snap files (#14480)

This commit is contained in:
Geert-Jan Zwiers 2022-05-04 13:10:55 +02:00 committed by GitHub
parent e3954df8c5
commit 253fbf9d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 79 additions and 1 deletions

View file

@ -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));