fix(cli): side-load test modules (#11515)

This fixes a regression introduced in 1.9 where test modules became main
modules by side loading them in a generated module.
This commit is contained in:
Casper Beyer 2021-07-26 20:05:44 +08:00 committed by GitHub
parent 9e89fe2fe8
commit b2fcd3d014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 27 deletions

View file

@ -653,7 +653,7 @@ fn filter_coverages(
.filter(|e| {
let is_internal = e.url.starts_with("deno:")
|| e.url.ends_with("__anonymous__")
|| e.url.ends_with("$deno$test.ts");
|| e.url.ends_with("$deno$test.js");
let is_included = include.iter().any(|p| p.is_match(&e.url));
let is_excluded = exclude.iter().any(|p| p.is_match(&e.url));